We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b9bf66 commit 25b1896Copy full SHA for 25b1896
clang/test/Sema/enum.c
@@ -129,6 +129,10 @@ typedef struct Color NewColor; // expected-error {{use of 'Color' with tag type
129
#else
130
_Static_assert(__has_extension(c_fixed_enum), "");
131
_Static_assert(!__has_feature(c_fixed_enum), "");
132
+#if __STDC_VERSION__ < 201112L
133
+ // expected-warning@-3 {{'_Static_assert' is a C11 extension}}
134
135
+#endif
136
#endif
137
typedef enum : unsigned char { Pink, Black, Cyan } Color; // pre-c23-warning {{enumeration types with a fixed underlying type are a C23 extension}}
138
0 commit comments