Skip to content

Commit 167153c

Browse files
author
git apple-llvm automerger
committed
Merge commit 'f33dc8e4388c' from llvm.org/main into next
2 parents 7b24895 + f33dc8e commit 167153c

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)