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