Home | History | Annotate | Download | only in Parser

Lines Matching full:attribute

15   // ... but is interpreted as an attribute where possible.
16 int b[ [noreturn] ]; // expected-error {{'noreturn' attribute only applies to functions and methods}}
21 int d[ [noreturn] { return 3; } () ]; // expected-error {{expected ']'}} expected-error {{'noreturn' attribute only applies}}
32 // An attribute is OK.
34 [[int(), noreturn]]; // expected-warning {{unknown attribute 'int' ignored}} \
35 // expected-error {{'noreturn' attribute cannot be applied to a statement}}
36 [[class, test(foo 'x' bar),,,]]; // expected-warning {{unknown attribute 'test' ignored}}\
37 // expected-warning {{unknown attribute 'class' ignored}}
39 [[bitand, noreturn]]; // expected-error {{'noreturn' attribute cannot be applied to a statement}} \
40 expected-warning {{unknown attribute 'bitand' ignored}}
59 [[test::foo(bar, baz)...]]; // expected-error {{attribute 'foo' cannot be used as an attribute pack}} \
60 // expected-warning {{unknown attribute 'foo' ignored}}
62 [[used(x)...]]; // expected-error {{attribute 'used' cannot be used as an attribute pack}} \
63 // expected-warning {{unknown attribute 'used' ignored}}