1 /* PR 35058: -Werror= works only with some warnings. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c99 -pedantic -Werror=declaration-after-statement" } */
4 /* { dg-message "some warnings being treated as errors" "" {target "*-*-*"} 0 } */
5 extern void abort (void);
6 extern void exit (int);
17 int j
= i
; /* { dg-error "" "declaration-after-statement" } */
20 struct foo
{ int i0
; } k
= { 4 }; /* { dg-error "" "declaration-after-statement" } */