builtin-has-attribute-4.c: Skip on 32-bit hppa*-*-hpux*.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr63543.c
blob215b62ed911f8c1cf8137b1e26d9f2ec27227241
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 "dereferencing pointer to incomplete type .struct S." } */
11 + s->b
12 + s->c;
15 int
16 f2 (union U *u)
18 return u->a /* { dg-error "dereferencing pointer to incomplete type .union U." } */
19 + u->a
20 + u->a;