1 // RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -verify -Wno-unused %s
8 // expected-error@+1{{expected '(' after '__builtin_sycl_unique_stable_name'}}
9 __builtin_sycl_unique_stable_name
int; // Correct usage is __builtin_sycl_unique_stable_name(int);
11 // expected-error@+1{{expected '(' after '__builtin_sycl_unique_stable_name'}}
12 __builtin_sycl_unique_stable_name
{int}; // Correct usage is __builtin_sycl_unique_stable_name(int);
14 // expected-error@+2{{expected ')'}}
15 // expected-note@+1{{to match this '('}}
16 __builtin_sycl_unique_stable_name(int; // Missing paren before semicolon
18 // expected-error@+2{{expected ')'}}
19 // expected-note@+1{{to match this '('}}
20 __builtin_sycl_unique_stable_name(int, float); // Missing paren before comma
22 // expected-error@+1{{unknown type name 'var'}}
23 __builtin_sycl_unique_stable_name(var
);
24 __builtin_sycl_unique_stable_name(NS::good
);
26 // expected-error@+1{{expected a type}}
27 __builtin_sycl_unique_stable_name(for (int i
= 0; i
< 10; ++i
) {})
28 __builtin_sycl_unique_stable_name({
29 (for (int i
= 0; i
< 10; ++i
){})})
34 __builtin_sycl_unique_stable_name(typename
T::good_type
);