summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr43084.c
blob: c3101248af68e94756497a7cc9d7d7b98105c963 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR debug/43084 */
/* { dg-do compile } */
/* { dg-options "-O1 -fipa-struct-reorg -fwhole-program -fcompare-debug" } */

struct S
{
  int a;
};

int
main ()
{
  struct S s;
  struct S *p = &s;
  return p->a;
}