14 lines · plain
1// RUN: %clang_cc1 -E -triple x86_64-linux-gnu %s -o - \2// RUN: | FileCheck -check-prefix=NOHDT %s3// RUN: %clang_cc1 -E -triple x86_64-linux-gnu %s -o - \4// RUN: -foffload-implicit-host-device-templates \5// RUN: | FileCheck -check-prefix=HDT %s6 7// NOHDT: no_implicit_host_device_templates8// HDT: has_implicit_host_device_templates9#if __has_extension(cuda_implicit_host_device_templates)10int has_implicit_host_device_templates();11#else12int no_implicit_host_device_templates();13#endif14