summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/dwarf2/ipa-cp1.c
blob: 7442dab19f9a5e852d6d563cff9d91355d08716e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* { dg-do compile } */
/* { dg-options "-O2 -gdwarf-2 -dA" } */
void q(int p);
static void
t(int constant_propagated_par)
{
  int local_var = constant_propagated_par + 1;
  q(local_var);
  q(local_var);
  q(local_var);
  q(local_var);
  q(local_var);
  q(local_var);
  q(local_var);
  q(local_var);
  q(local_var);
  q(local_var);
  q(local_var);
}
main()
{
  t(5);
  t(5);
  t(5);
  t(5);
  t(5);
  t(5);
  t(5);
}
/* { dg-final { scan-assembler "local_var" } } */