Tests/Cuda/ObjectLibrary/main.cpp
raw| 1 | int cpp_sq_func(int); |
| 2 | int cu1_sq_func(int); |
| 3 | int cu2_sq_func(int); |
| 4 | |
| 5 | bool test_functions() |
| 6 | { |
| 7 | return (cu1_sq_func(42) == cpp_sq_func(42)) && |
| 8 | (cu2_sq_func(42) == cpp_sq_func(42)); |
| 9 | } |
| 10 | |
| 11 | int main(int argc, char** argv) |
| 12 | { |
| 13 | int result = test_functions() ? 0 : 1; |
| 14 | return result; |
| 15 | } |