summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly/EnableStandard/shared.cu
blob: 004cb83720aa237fe9ce8561b1ae27915e08548c (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;
}