annotate gcc/testsuite/gcc.dg/transparent-union-2.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +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/20043 */
kono
parents:
diff changeset
2 /* { dg-do compile } */
kono
parents:
diff changeset
3 /* { dg-options "-std=gnu99" } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 typedef union { int *i; long *l; } U
kono
parents:
diff changeset
6 __attribute__((transparent_union));
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 extern void f0 (U); /* { dg-message "note: previous declaration" } */
kono
parents:
diff changeset
9 extern void f0 (void *); /* { dg-error "conflicting types" } */
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 extern void f1 (U); /* { dg-message "note: previous declaration" } */
kono
parents:
diff changeset
12 extern void f1 (unsigned long); /* { dg-error "conflicting types" } */
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 extern void f2 (void *); /* { dg-message "note: previous declaration" } */
kono
parents:
diff changeset
15 extern void f2 (U); /* { dg-error "conflicting types" } */
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 extern void f3 (unsigned long); /* { dg-message "note: previous declaration" } */
kono
parents:
diff changeset
18 extern void f3 (U); /* { dg-error "conflicting types" } */