Corrected date in changelog
[official-gcc.git] / gcc / testsuite / gcc.dg / transparent-union-2.c
blobadc20761796eb6a206eff83ee1a6a2f717d910e4
1 /* PR c/20043 */
2 /* { dg-do compile } */
3 /* { dg-options "-std=gnu99" } */
5 typedef union { int *i; long *l; } U
6 __attribute__((transparent_union));
8 extern void f0 (U); /* { dg-message "note: previous declaration" } */
9 extern void f0 (void *); /* { dg-error "conflicting types" } */
11 extern void f1 (U); /* { dg-message "note: previous declaration" } */
12 extern void f1 (unsigned long); /* { dg-error "conflicting types" } */
14 extern void f2 (void *); /* { dg-message "note: previous declaration" } */
15 extern void f2 (U); /* { dg-error "conflicting types" } */
17 extern void f3 (unsigned long); /* { dg-message "note: previous declaration" } */
18 extern void f3 (U); /* { dg-error "conflicting types" } */