summaryrefslogtreecommitdiffstats
path: root/Tests/Cuda/ObjectLibrary/main.cpp
blob: 4d2f8902898004005088b9a88e0eac0443a70a68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

#include <iostream>

int static_func(int);
int file1_sq_func(int);

int test_functions()
{
  return file1_sq_func(static_func(42));
}

int main(int argc, char** argv)
{
  if (test_functions() == 1) {
    return 1;
  }
  std::cout
    << "this executable doesn't use cuda code, just call methods defined"
    << std::endl;
  std::cout << "in object files that have cuda code" << std::endl;
  return 0;
}