xref: /llvm-project/clang/test/Lexer/has_extension.cu (revision 9774d0ce5fbd70288514da77072313b4f45b34bb)
1 // RUN: %clang_cc1 -E -triple x86_64-linux-gnu %s -o - \
2 // RUN:   | FileCheck -check-prefix=NOHDT %s
3 // RUN: %clang_cc1 -E -triple x86_64-linux-gnu %s -o - \
4 // RUN:   -foffload-implicit-host-device-templates \
5 // RUN:   | FileCheck -check-prefix=HDT %s
6 
7 // NOHDT: no_implicit_host_device_templates
8 // HDT: has_implicit_host_device_templates
9 #if __has_extension(cuda_implicit_host_device_templates)
10 int has_implicit_host_device_templates();
11 #else
12 int no_implicit_host_device_templates();
13 #endif
14