| 1 |
// RUN: %clang_cc1 -fsyntax-only -verify %s |
| 2 |
|
| 3 |
// These tests validate that the sycl_external attribute is ignored when SYCL |
| 4 |
// support is not enabled. |
| 5 |
|
| 6 |
// expected-warning@+1{{'clang::sycl_external' attribute ignored}} |
| 7 |
[[clang::sycl_external]] void bar() {} |
| 8 |
|
| 9 |
// expected-warning@+1{{'clang::sycl_external' attribute ignored}} |
| 10 |
[[clang::sycl_external]] int a; |
| 11 |
|
| 12 |
// expected-warning@+2{{'clang::sycl_external' attribute ignored}} |
| 13 |
template<typename T> |
| 14 |
[[clang::sycl_external]] void ft(T) {} |
| 15 |
template void ft(int); |