jit: Fix Darwin bootstrap after r15-1699.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr63543.c
blobd85e10d2021eb4d8a88503a0b50d4324e079ff65
1 /* PR c/63543 */
2 /* { dg-do compile } */
4 struct S;
5 union U;
7 int
8 f1 (struct S *s)
10 return s->a /* { dg-error "invalid use of undefined type .struct S." } */
11 + s->b /* { dg-error "invalid use of undefined type .struct S." } */
12 + s->c; /* { dg-error "invalid use of undefined type .struct S." } */
15 int
16 f2 (union U *u)
18 return u->a /* { dg-error "invalid use of undefined type .union U." } */
19 + u->a /* { dg-error "invalid use of undefined type .union U." } */
20 + u->a; /* { dg-error "invalid use of undefined type .union U." } */