main.cpp 404 B

12345678910111213141516171819202122
  1. #include <iostream>
  2. int static_func(int);
  3. int file1_sq_func(int);
  4. int test_functions()
  5. {
  6. return file1_sq_func(static_func(42));
  7. }
  8. int main(int argc, char** argv)
  9. {
  10. if (test_functions() == 1) {
  11. return 1;
  12. }
  13. std::cout
  14. << "this executable doesn't use cuda code, just call methods defined"
  15. << std::endl;
  16. std::cout << "in object files that have cuda code" << std::endl;
  17. return 0;
  18. }