[flang][cuda] Adapt ExternalNameConversion to work in gpu module (#117039)
[llvm-project.git] / clang / test / AST / ByteCode / sycl.cpp
blob5c922eca58091e93463884717561189e48c6da82
1 // RUN: %clang_cc1 %s -std=c++17 -triple x86_64-linux-gnu -fsycl-is-device -verify=both,ref -fsyntax-only -Wno-unused
2 // RUN: %clang_cc1 %s -std=c++17 -triple x86_64-linux-gnu -fsycl-is-device -verify=both,expected -fsyntax-only -Wno-unused -fexperimental-new-constant-interpreter
4 // both-no-diagnostics
6 constexpr int a = 0;
7 constexpr const char *a_name = __builtin_sycl_unique_stable_name(decltype(a));
8 static_assert(__builtin_strcmp(a_name, "_ZTSKi") == 0);