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/Sema/for.c
+5
Original file line number
Diff line number
Diff line change
@@ -24,3 +24,8 @@ void b10(void) { for (typedef struct { int i; } (*s)(struct { int j; });;); } /*
24
24
voidb11 (void) { for (static_Thread_localstruct { inti; } s;s.i;); } /* c11-warning {{declaration of non-local variable in 'for' loop is a C23 extension}}
25
25
c23-warning {{declaration of non-local variable in 'for' loop is incompatible with C standards before C23}} */
26
26
#endif
27
+
28
+
voidb12(void) {
29
+
for(_Static_assert(1, "");;) {} /* c11-warning {{non-variable declaration in 'for' loop is a C23 extension}}
30
+
c23-warning {{non-variable declaration in 'for' loop is incompatible with C standards before C23}} */
0 commit comments