CUDA: Add tests to verify CUDA compiler works properly.

This commit is contained in:
Robert Maynard
2016-11-01 16:11:51 -04:00
committed by Brad King
parent 9cf5b98d54
commit 7b9131da64
37 changed files with 624 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
#include <iostream>
int static_func(int);
int file1_sq_func(int);
void test_functions()
{
file1_sq_func(static_func(42));
}
int main(int argc, char** argv)
{
test_functions();
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;
}