gcc/gcc/testsuite/gcc.dg/pr43084.c

18 lines
274 B
C

/* PR debug/43084 */
/* { dg-do compile } */
/* { dg-options "-O1 -fipa-struct-reorg -fwhole-program -fcompare-debug" } */
/* { dg-xfail-if "" { powerpc-ibm-aix* } { "*" } { "" } } */
struct S
{
int a;
};
int
main ()
{
struct S s;
struct S *p = &s;
return p->a;
}