Author: Aaron Ballman Date: 2024-11-08T13:20:38-05:00 New Revision: 2808f05e83643b3d5ef128340f6f4da994ed71e3
URL: https://github.com/llvm/llvm-project/commit/2808f05e83643b3d5ef128340f6f4da994ed71e3 DIFF: https://github.com/llvm/llvm-project/commit/2808f05e83643b3d5ef128340f6f4da994ed71e3.diff LOG: Update test case for bots which don't default to C17 Added: Modified: clang/test/C/C2y/n3341.c Removed: ################################################################################ diff --git a/clang/test/C/C2y/n3341.c b/clang/test/C/C2y/n3341.c index 523c3dd945ac1d..4cff7f08cc2320 100644 --- a/clang/test/C/C2y/n3341.c +++ b/clang/test/C/C2y/n3341.c @@ -10,7 +10,9 @@ // expected-no-diagnostics struct R {}; // gnu-warning {{empty struct is a GNU extension}} +#if __STDC_VERSION__ >= 201112L struct S { struct { }; }; // gnu-warning {{empty struct is a GNU extension}} +#endif struct T { int : 0; }; // gnu-warning {{struct without named members is a GNU extension}} union U {}; // gnu-warning {{empty union is a GNU extension}} _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits