summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/dwarf2/var2.c
blob: 72aef4180983ff5377b1a46385d0c30ebee94983 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR 23190 */
/* { dg-do compile }
/* { dg-options "-O2 -gdwarf -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;
}