PR testsuite/52641
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr55579.c
blob16807cf66c66d69769abf705053a4796e889fa46
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -g -fdump-tree-esra -fvar-tracking-assignments" } */
4 struct S { int a; char b; char c; short d; };
6 int
7 foo (int x)
9 struct S s = { x + 1, x + 2, x + 3, x + 4 };
10 char *p = &s.c;
11 return x;
14 /* { dg-final { scan-tree-dump "Created a debug-only replacement for s" "esra" } } */
15 /* { dg-final { cleanup-tree-dump "esra" } } */