| 1 |
// RUN: %clang_cc1 -fsycl-is-host -fsyntax-only -verify %s |
| 2 |
// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -verify %s |
| 3 |
|
| 4 |
// FIXME-expected-error@+1{{'clang::sycl_external' attribute takes no arguments}} |
| 5 |
[[clang::sycl_external()]] void bad1(); |
| 6 |
|
| 7 |
// expected-error@+1{{expected expression}} |
| 8 |
[[clang::sycl_external(,)]] void bad2(); |
| 9 |
|
| 10 |
// expected-error@+1{{'clang::sycl_external' attribute takes no arguments}} |
| 11 |
[[clang::sycl_external(3)]] void bad3(); |
| 12 |
|
| 13 |
// expected-error@+1{{expected expression}} |
| 14 |
[[clang::sycl_external(4,)]] void bad4(); |