Files
CMake/Tests/HIP/MixedLanguage/shared.c
Robert Maynard 947dbed0aa HIP: Automatically inject the hip::device runtime target
Any target that might need to link to hip code needs the `hip::device`
target
2021-06-07 19:25:33 +00:00

13 lines
135 B
C

#ifdef _WIN32
# define EXPORT __declspec(dllexport)
#else
# define EXPORT
#endif
EXPORT int shared_c_func(int x)
{
return -x;
}