clang/test/AST/ByteCode/sycl.cpp
raw| 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 |
| 3 | |
| 4 | // both-no-diagnostics |
| 5 | |
| 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); |
| 9 |