1 /* Diagnostics for attempts to access a member not in a structure or
2 union should name the type involved. Bug 13804. */
3 /* Origin: Joseph Myers <jsm@polyomino.org.uk> */
4 /* { dg-do compile } */
5 /* { dg-options "" } */
22 x0
.c
; /* { dg-error "'struct s0' has no member named 'c'" } */
23 x1
.c
; /* { dg-error "'S0' has no member named 'c'" } */
24 x2
.c
; /* { dg-error "'union u0' has no member named 'c'" } */
25 x3
.c
; /* { dg-error "'U0' has no member named 'c'" } */
26 x4
->c
; /* { dg-error "'struct s0' has no member named 'c'" } */
27 x5
->c
; /* { dg-error "'union u0' has no member named 'c'" } */