summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly/EnableStandard/shared.cu
blob: ccdd0b28ee7d20a63ce63291aee964a043956fa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

#include <type_traits>

#ifdef _WIN32
#define EXPORT __declspec(dllexport)
#else
#define EXPORT
#endif

using tt = std::true_type;
using ft = std::false_type;
EXPORT int __host__ shared_cuda11_func(int x)
{
  return x * x + std::integral_constant<int, 17>::value;
}