diff --git a/clang/test/Sema/enum.c b/clang/test/Sema/enum.c index f12ce61ac13a61..3db301dab0a450 100644 --- a/clang/test/Sema/enum.c +++ b/clang/test/Sema/enum.c @@ -129,6 +129,10 @@ typedef struct Color NewColor; // expected-error {{use of 'Color' with tag type #else _Static_assert(__has_extension(c_fixed_enum), ""); _Static_assert(!__has_feature(c_fixed_enum), ""); +#if __STDC_VERSION__ < 201112L + // expected-warning@-3 {{'_Static_assert' is a C11 extension}} + // expected-warning@-3 {{'_Static_assert' is a C11 extension}} +#endif #endif typedef enum : unsigned char { Pink, Black, Cyan } Color; // pre-c23-warning {{enumeration types with a fixed underlying type are a C23 extension}}