From 98dfdefada24c81566f694aeac38f2d21f43a203 Mon Sep 17 00:00:00 2001 From: Evgeny Mankov Date: Sat, 28 Aug 2021 17:18:31 +0300 Subject: [PATCH] [HIPIFY][tests] Synthetic test for CUDA Runtime API typedefs --- .../unit_tests/synthetic/runtime_typedefs.cu | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/unit_tests/synthetic/runtime_typedefs.cu diff --git a/tests/unit_tests/synthetic/runtime_typedefs.cu b/tests/unit_tests/synthetic/runtime_typedefs.cu new file mode 100644 index 00000000..2c925da0 --- /dev/null +++ b/tests/unit_tests/synthetic/runtime_typedefs.cu @@ -0,0 +1,19 @@ +// RUN: %run_test hipify "%s" "%t" %hipify_args -D__CUDA_API_VERSION_INTERNAL %clang_args + +// CHECK: #include +#include + +int main() { + printf("07. CUDA Runtime API Typedefs synthetic test\n"); + + // CHECK: hipHostFn_t HostFn_t; + // CHECK-NEXT: hipStreamCallback_t StreamCallback_t; + // CHECK-NEXT: hipSurfaceObject_t SurfaceObject_t; + // CHECK-NEXT: hipTextureObject_t TextureObject_t; + cudaHostFn_t HostFn_t; + cudaStreamCallback_t StreamCallback_t; + cudaSurfaceObject_t SurfaceObject_t; + cudaTextureObject_t TextureObject_t; + + return 0; +}