summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr43084.c
blob: 2afc48444a1731a0560cfc0a2c56b3c8715fabbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* 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;
}