1 /* Test for C99 mixed declarations and code giving warnings, not error with
2 -Wdeclaration-after-statement. See also c9?-mixdecl-*. */
3 /* Origin: Joseph Myers <jsm28@cam.ac.uk> */
5 /* { dg-options "-std=c99 -pedantic-errors -Wdeclaration-after-statement" } */
7 extern void abort (void);
8 extern void exit (int);
19 int j
= i
; /* { dg-warning "warning" "declaration-after-statement" } */
22 struct foo
{ int i0
; } k
= { 4 }; /* { dg-warning "warning" "declaration-after-statement" } */