16 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3// These tests validate that the sycl_external attribute is ignored when SYCL4// 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}}13template<typename T>14[[clang::sycl_external]] void ft(T) {}15template void ft(int);16