Skip to content

Commit b0da729

Browse files
committed
Add extra parser test
1 parent 02d1a51 commit b0da729

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

clang/test/Parser/c2x-attribute-keywords.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,13 @@ void invalid_parentheses3() __arm_inout((); // expected-error {{expected string
128128
void invalid_parentheses4() __arm_inout); // expected-error {{expected '(' after ''__arm_inout''}} \
129129
// expected-error {{expected function body after function declarator}}
130130
void invalid_parentheses5() __arm_inout(()); // expected-error {{expected string literal as argument of '__arm_inout' attribute}}
131+
void invalid_parentheses6() __arm_inout("za"; // expected-error {{expected ')'}}
132+
void invalid_parentheses7() __arm_streaming(; // expected-error {{expected parameter declarator}} \
133+
// expected-error {{expected ')'}} \
134+
// expected-note {{to match this '('}} \
135+
// expected-error {{function cannot return function type 'void ()'}} \
136+
// expected-error {{'__arm_streaming' only applies to function types; type here is 'int ()'}} \
137+
// expected-warning {{'__arm_streaming' only applies to non-K&R-style functions}}
138+
void invalid_parentheses8() __arm_streaming(); // expected-error {{function cannot return function type 'void ()'}} \
139+
// expected-error {{'__arm_streaming' only applies to function types; type here is 'int ()'}} \
140+
// expected-warning {{'__arm_streaming' only applies to non-K&R-style functions}}

0 commit comments

Comments
 (0)