llvm-project/clang/test/ParserSYCL/unique_stable_name_sycl_onl...

10 lines
382 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify=notsycl -Wno-unused %s
// RUN: %clang_cc1 -fsyntax-only -fsycl-is-host -verify=sycl -Wno-unused %s
// RUN: %clang_cc1 -fsyntax-only -fsycl-is-device -verify=sycl -Wno-unused %s
// sycl-no-diagnostics
void foo() {
// notsycl-error@+1{{expected '(' for function-style cast or type construction}}
__builtin_sycl_unique_stable_name(int);
}