1 /* See declspec-3.c . Test disabling -Wold-style-declaration. */
2 /* { dg-do compile } */
3 /* { dg-options "-Wextra -Wno-old-style-declaration" } */
6 int static x1
; /* { dg-bogus "not at beginning" } */
9 int extern x3
; /* { dg-bogus "not at beginning" } */
12 int typedef x5
; /* { dg-bogus "not at beginning" } */
20 int auto x7
= 0; /* { dg-bogus "not at beginning" } */
22 int register x9
= 0; /* { dg-bogus "not at beginning" } */
23 g (x6
+ x7
+ x8
+ x9
);
26 const static int x10
; /* { dg-bogus "not at beginning" } */
28 /* Attributes are OK before storage class specifiers, since some
29 attributes are like such specifiers themselves. */
31 __attribute__((format(printf
, 1, 2))) static void h (const char *, ...);
32 __attribute__((format(printf
, 1, 2))) void static i (const char *, ...); /* { dg-bogus "not at beginning" } */