Skip to content

Commit f33dc8e

Browse files
committed
Add additional test coverage
Test was requested via post-commit review
1 parent da30225 commit f33dc8e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/test/Sema/warn-duplicate-decl-specifier.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ __attribute__((address_space(1)))
1515
__attribute__((address_space(1))) // expected-warning {{multiple identical address spaces specified for type}}
1616
int j = 12;
1717

18+
volatile const volatile const int x = 1; // expected-warning {{duplicate 'const' declaration specifier}} \
19+
expected-warning {{duplicate 'volatile' declaration specifier}}

0 commit comments

Comments
 (0)