blob: 345b5958a19df812d31ca5b85e3bcc531027e989 [file] [log] [blame]
/* PR middle-end/94436 */
/* { dg-do compile } */
/* { dg-options "-Wincompatible-pointer-types" } */
struct S { int s; };
int foo (struct S *);
int
bar (void)
{
int s = 0;
return foo ((struct S *) ((char *) &s - (char *) &((struct S *) 0)->s)); /* { dg-bogus "from incompatible pointer type" } */
}