Files
CMake/Tests/Cuda/MixedStandardLevels5/lib.cpp
2019-12-10 17:56:48 -05:00

14 lines
202 B
C++

#if __cplusplus >= 201103L
# error "invalid standard value"
#endif
int func(int A, int B)
{
// Verify that we have at least c++14
if (A < B) {
return A + B;
} else {
return B * A;
}
}