diff options
Diffstat (limited to 'Tests/CudaOnly/EnableStandard/static.cu')
-rw-r--r-- | Tests/CudaOnly/EnableStandard/static.cu | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/CudaOnly/EnableStandard/static.cu b/Tests/CudaOnly/EnableStandard/static.cu new file mode 100644 index 0000000..73e43a8 --- /dev/null +++ b/Tests/CudaOnly/EnableStandard/static.cu @@ -0,0 +1,9 @@ + +#include <type_traits> + +using tt = std::true_type; +using ft = std::false_type; +int __host__ static_cuda11_func(int x) +{ + return x * x + std::integral_constant<int, 17>::value; +} |