[Clang/AMDGPU] Zero sized arrays not allowed in HIP device code. (#113470)
[llvm-project.git] / clang / test / Lexer / has_extension.cu
blobfd5083e84b887deb678c149fbb554bcf524d2502
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
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