1 /* { dg-do compile } */
2 /* { dg-options "-fplan9-extensions" } */
4 /* Test for ambiguity when using the Plan 9 extensions. */
7 char a
; /* { dg-error "duplicate member" } */
19 return p
->a
; /* { dg-error "no member" } */
23 f2 (struct A
*p
) /* { dg-message "expected" } */
30 f2 (p
); /* { dg-error "incompatible pointer type" } */
35 char c
; /* { dg-error "duplicate member" } */
52 return p
->c
; /* { dg-error "no member" } */
56 f6 (struct C
*p
) /* { dg-message "expected" } */
63 f6 (p
); /* { dg-error "incompatible pointer type" } */
69 return p
->A
; /* { dg-error "no member" } */
75 return p
->C
; /* { dg-error "no member" } */