clang/test/ParserSYCL/unique_stable_name_sycl_only.cpp
raw| 1 | // RUN: %clang_cc1 -fsyntax-only -verify=notsycl -Wno-unused %s |
| 2 | // RUN: %clang_cc1 -fsyntax-only -fsycl-is-host -verify=sycl -Wno-unused %s |
| 3 | // RUN: %clang_cc1 -fsyntax-only -fsycl-is-device -verify=sycl -Wno-unused %s |
| 4 | |
| 5 | // sycl-no-diagnostics |
| 6 | void foo() { |
| 7 | // notsycl-error@+1{{expected '(' for function-style cast or type construction}} |
| 8 | __builtin_sycl_unique_stable_name(int); |
| 9 | } |