]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/transparent-union-2.c
replace ISL with isl
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / transparent-union-2.c
CommitLineData
58cb41e6 1/* PR c/20043 */
c5c178d6 2/* { dg-do compile } */
58cb41e6
JJ
3/* { dg-options "-std=gnu99" } */
4
5typedef union { int *i; long *l; } U
6 __attribute__((transparent_union));
7
71205d17 8extern void f0 (U); /* { dg-message "note: previous declaration" } */
58cb41e6
JJ
9extern void f0 (void *); /* { dg-error "conflicting types" } */
10
71205d17 11extern void f1 (U); /* { dg-message "note: previous declaration" } */
58cb41e6
JJ
12extern void f1 (unsigned long); /* { dg-error "conflicting types" } */
13
71205d17 14extern void f2 (void *); /* { dg-message "note: previous declaration" } */
58cb41e6
JJ
15extern void f2 (U); /* { dg-error "conflicting types" } */
16
71205d17 17extern void f3 (unsigned long); /* { dg-message "note: previous declaration" } */
58cb41e6 18extern void f3 (U); /* { dg-error "conflicting types" } */