2017-04-14 19:02:05 +02:00
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
int static_func(int);
|
|
|
|
int file1_sq_func(int);
|
|
|
|
|
2017-07-20 19:35:53 +02:00
|
|
|
int test_functions()
|
2017-04-14 19:02:05 +02:00
|
|
|
{
|
2017-07-20 19:35:53 +02:00
|
|
|
return file1_sq_func(static_func(42));
|
2017-04-14 19:02:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
int main(int argc, char** argv)
|
|
|
|
{
|
2017-07-20 19:35:53 +02:00
|
|
|
if (test_functions() == 1) {
|
|
|
|
return 1;
|
|
|
|
}
|
2017-04-14 19:02:05 +02:00
|
|
|
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;
|
|
|
|
}
|