Skip to content

Commit 6bbca07

Browse files
committed
add additional test
1 parent 3856379 commit 6bbca07

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/test/Parser/c2x-auto.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ auto basic_usage(auto auto) { // c23-error {{'auto' not allowed in function pr
6464

6565
constexpr auto int x = 0; // c23-error {{cannot combine with previous 'auto' declaration specifier}} \
6666
c17-error {{use of undeclared identifier 'constexpr'}}
67+
68+
constexpr int auto y = 0; // c23-error {{cannot combine with previous 'int' declaration specifier}} \
69+
c17-error {{use of undeclared identifier 'constexpr'}}
70+
6771
return c;
6872
}
6973

0 commit comments

Comments
 (0)