]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/guality/pr54200.c
Revert "[PR64164] Drop copyrename, use coalescible partition as base when optimizing."
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / guality / pr54200.c
CommitLineData
61f7b9ae
RG
1/* PR tree-optimization/54200 */
2/* { dg-do run } */
0f9f9784 3/* { dg-options "-g -fno-var-tracking-assignments" } */
61f7b9ae
RG
4
5int o __attribute__((used));
6
7void bar (void) { o = 2; }
8
9int __attribute__((noinline,noclone))
10foo (int z, int x, int b)
11{
12 if (x == 1)
13 {
14 bar ();
15 return z;
16 }
17 else
18 {
19 int a = (x + z) + b;
20 return a; /* { dg-final { gdb-test 20 "z" "3" } } */
21 }
22}
23
24int main ()
25{
26 foo (3, 2, 1);
27 return 0;
28}