1/* Test __auto_type.  Test invalid uses.  */
2/* { dg-do compile } */
3/* { dg-options "" } */
4
5__auto_type; /* { dg-error "empty declaration" } */
6__auto_type *p = (int *) 0; /* { dg-error "plain identifier" } */
7struct s0 { int i : 1; } x;
8void f (void) { __auto_type v = x.i; } /* { dg-error "bit-field initializer" } */
9__auto_type i; /* { dg-error "initialized data declaration" } */
10__auto_type g { } /* { dg-error "initialized data declaration" } */
11__auto_type a = 1, b = 2; /* { dg-error "single declarator" } */
12__auto_type long e0 = 0; /* { dg-error "__auto_type" } */
13__auto_type short e1 = 0; /* { dg-error "__auto_type" } */
14__auto_type signed e2 = 0; /* { dg-error "__auto_type" } */
15__auto_type unsigned e3 = 0; /* { dg-error "__auto_type" } */
16__auto_type _Complex e4 = 0; /* { dg-error "__auto_type" } */
17long __auto_type e5 = 0; /* { dg-error "__auto_type" } */
18short __auto_type e6 = 0; /* { dg-error "__auto_type" } */
19signed __auto_type e7 = 0; /* { dg-error "__auto_type" } */
20unsigned __auto_type e8 = 0; /* { dg-error "__auto_type" } */
21_Complex __auto_type e9 = 0; /* { dg-error "__auto_type" } */
22int __auto_type e10 = 0; /* { dg-error "two or more data types" } */
23__auto_type _Bool e11 = 0; /* { dg-error "two or more data types" } */
24