// RUN: %run_test hipify "%s" "%t" %hipify_args 3 --amap --skip-excluded-preprocessor-conditional-blocks --experimental %clang_args -D__CUDA_API_VERSION_INTERNAL // CHECK: #include #include #include int main() { printf("11. CUDA Runtime API Unions synthetic test\n"); #if CUDA_VERSION >= 11000 // CHECK: hipKernelNodeAttrValue KernelNodeAttrValue; cudaKernelNodeAttrValue KernelNodeAttrValue; // CHECK: hipLaunchAttributeValue StreamAttrValue; cudaStreamAttrValue StreamAttrValue; #endif #if CUDA_VERSION >= 11080 // CHECK: hipLaunchAttributeValue LaunchAttributeValue; // CHECK-NEXT: hipLaunchAttributeValue launchAttributeValue_union; CUlaunchAttributeValue LaunchAttributeValue; CUlaunchAttributeValue_union launchAttributeValue_union; #endif return 0; }