annotate gcc/testsuite/gcc.dg/auto-type-2.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Test __auto_type. Test invalid uses. */
kono
parents:
diff changeset
2 /* { dg-do compile } */
kono
parents:
diff changeset
3 /* { dg-options "" } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 __auto_type; /* { dg-error "empty declaration" } */
kono
parents:
diff changeset
6 __auto_type *p = (int *) 0; /* { dg-error "plain identifier" } */
kono
parents:
diff changeset
7 struct s0 { int i : 1; } x;
kono
parents:
diff changeset
8 void f (void) { __auto_type v = x.i; } /* { dg-error "bit-field initializer" } */
kono
parents:
diff changeset
9 __auto_type i; /* { dg-error "initialized data declaration" } */
kono
parents:
diff changeset
10 __auto_type g { } /* { dg-error "initialized data declaration" } */
kono
parents:
diff changeset
11 __auto_type a = 1, b = 2; /* { dg-error "single declarator" } */
kono
parents:
diff changeset
12 __auto_type long e0 = 0; /* { dg-error "__auto_type" } */
kono
parents:
diff changeset
13 __auto_type short e1 = 0; /* { dg-error "__auto_type" } */
kono
parents:
diff changeset
14 __auto_type signed e2 = 0; /* { dg-error "__auto_type" } */
kono
parents:
diff changeset
15 __auto_type unsigned e3 = 0; /* { dg-error "__auto_type" } */
kono
parents:
diff changeset
16 __auto_type _Complex e4 = 0; /* { dg-error "__auto_type" } */
kono
parents:
diff changeset
17 long __auto_type e5 = 0; /* { dg-error "__auto_type" } */
kono
parents:
diff changeset
18 short __auto_type e6 = 0; /* { dg-error "__auto_type" } */
kono
parents:
diff changeset
19 signed __auto_type e7 = 0; /* { dg-error "__auto_type" } */
kono
parents:
diff changeset
20 unsigned __auto_type e8 = 0; /* { dg-error "__auto_type" } */
kono
parents:
diff changeset
21 _Complex __auto_type e9 = 0; /* { dg-error "__auto_type" } */
kono
parents:
diff changeset
22 int __auto_type e10 = 0; /* { dg-error "two or more data types" } */
kono
parents:
diff changeset
23 __auto_type _Bool e11 = 0; /* { dg-error "two or more data types" } */