annotate gcc/testsuite/gcc.dg/pr67580.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* PR c/67580 */
kono
parents:
diff changeset
2 /* { dg-do compile } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 struct S { int s; };
kono
parents:
diff changeset
5 union U { int s; };
kono
parents:
diff changeset
6 enum E { A };
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 void
kono
parents:
diff changeset
9 f (void)
kono
parents:
diff changeset
10 {
kono
parents:
diff changeset
11 S s; /* { dg-error "unknown type name .S.; use .struct. keyword to refer to the type" } */
kono
parents:
diff changeset
12 U u; /* { dg-error "unknown type name .U.; use .union. keyword to refer to the type" } */
kono
parents:
diff changeset
13 E e; /* { dg-error "unknown type name .E.; use .enum. keyword to refer to the type" } */
kono
parents:
diff changeset
14 }
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 void
kono
parents:
diff changeset
17 g (void)
kono
parents:
diff changeset
18 {
kono
parents:
diff changeset
19 struct T { int i; };
kono
parents:
diff changeset
20 union V { int i; };
kono
parents:
diff changeset
21 enum F { J };
kono
parents:
diff changeset
22 T t; /* { dg-error "unknown type name .T.; use .struct. keyword to refer to the type" } */
kono
parents:
diff changeset
23 V v; /* { dg-error "unknown type name .V.; use .union. keyword to refer to the type" } */
kono
parents:
diff changeset
24 F f; /* { dg-error "unknown type name .F.; use .enum. keyword to refer to the type" } */
kono
parents:
diff changeset
25 }