You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clang/test/C/C23/n3030.c
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,7 @@ static_assert(a == 1);
60
60
static_assert(b==1);
61
61
62
62
voidf1(enuma : longb); // expected-error {{non-defining declaration of enumeration with a fixed underlying type is only permitted as a standalone declaration; missing list of enumerators?}}
63
+
// expected-warning@-1 {{declaration of 'enum a' will not be visible outside of this function}}
63
64
voidf2(enumc : long{x} d);
64
65
enume : intf3(); // expected-error {{non-defining declaration of enumeration with a fixed underlying type is only permitted as a standalone declaration; missing list of enumerators?}}
0 commit comments