summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/dwarf2/var2.c
blob: 8ef2a74388c20968db6ca8aecfbc635b0ac2f32f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR 23190 */
/* { dg-do compile }
/* { dg-options "-O2 -gdwarf-2 -dA" } */
/* { dg-final { scan-assembler "DW_OP_addr\[\\n\\r\]+\[^\\n\\r\]+foo" } } */
/* { dg-final { scan-assembler "DW_OP_addr\[\\n\\r\]+\[^\\n\\r\]+bar" } } */

static int foo;
int bar;
int main(void)
{
   foo += 3;
   bar *= 5;
   return 0;
}