]>
Commit | Line | Data |
---|---|---|
58cb41e6 | 1 | /* PR c/20043 */ |
c5c178d6 | 2 | /* { dg-do compile } */ |
58cb41e6 JJ |
3 | /* { dg-options "-std=gnu99" } */ |
4 | ||
5 | typedef union { int *i; long *l; } U | |
6 | __attribute__((transparent_union)); | |
7 | ||
71205d17 | 8 | extern void f0 (U); /* { dg-message "note: previous declaration" } */ |
58cb41e6 JJ |
9 | extern void f0 (void *); /* { dg-error "conflicting types" } */ |
10 | ||
71205d17 | 11 | extern void f1 (U); /* { dg-message "note: previous declaration" } */ |
58cb41e6 JJ |
12 | extern void f1 (unsigned long); /* { dg-error "conflicting types" } */ |
13 | ||
71205d17 | 14 | extern void f2 (void *); /* { dg-message "note: previous declaration" } */ |
58cb41e6 JJ |
15 | extern void f2 (U); /* { dg-error "conflicting types" } */ |
16 | ||
71205d17 | 17 | extern void f3 (unsigned long); /* { dg-message "note: previous declaration" } */ |
58cb41e6 | 18 | extern void f3 (U); /* { dg-error "conflicting types" } */ |