summaryrefslogtreecommitdiffstats
path: root/Tests/HIP/EnableStandard/shared.hip
blob: 204225863318d49d5e2242a7944355c5113e14f5 (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_hip11_func(int x)
{
  return x * x + std::integral_constant<int, 17>::value;
}