summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr43084.c
blob: dc75982f4573271bdde1d90d0f3611abc8599b6d (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 -fwhole-program -fcompare-debug" } */

struct S
{
  int a;
};

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