Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / pr94436.c
blob345b5958a19df812d31ca5b85e3bcc531027e989
1 /* PR middle-end/94436 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wincompatible-pointer-types" } */
5 struct S { int s; };
6 int foo (struct S *);
8 int
9 bar (void)
11 int s = 0;
12 return foo ((struct S *) ((char *) &s - (char *) &((struct S *) 0)->s)); /* { dg-bogus "from incompatible pointer type" } */