Author: Aaron Ballman Date: 2025-05-02T07:39:27-04:00 New Revision: f33dc8e4388cb1cc6a9212bc0618542c80b5c1ee
URL: https://github.com/llvm/llvm-project/commit/f33dc8e4388cb1cc6a9212bc0618542c80b5c1ee DIFF: https://github.com/llvm/llvm-project/commit/f33dc8e4388cb1cc6a9212bc0618542c80b5c1ee.diff LOG: Add additional test coverage Test was requested via post-commit review Added: Modified: clang/test/Sema/warn-duplicate-decl-specifier.c Removed: ################################################################################ diff --git a/clang/test/Sema/warn-duplicate-decl-specifier.c b/clang/test/Sema/warn-duplicate-decl-specifier.c index d57bb867f66f1..8366f774a0649 100644 --- a/clang/test/Sema/warn-duplicate-decl-specifier.c +++ b/clang/test/Sema/warn-duplicate-decl-specifier.c @@ -15,3 +15,5 @@ __attribute__((address_space(1))) __attribute__((address_space(1))) // expected-warning {{multiple identical address spaces specified for type}} int j = 12; +volatile const volatile const int x = 1; // expected-warning {{duplicate 'const' declaration specifier}} \ + expected-warning {{duplicate 'volatile' declaration specifier}} _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits