summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/debug/dwarf2/imported-decl-1.C
blob: bfdb4f8f5a0407bd5698360b40a354a5c55e3026 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR debug/39524
// { dg-do compile }
// { dg-options "-gdwarf-2 -dA -O0 -fno-merge-debug-strings" }

namespace A
{
  static int var2 = 2;
}

int
func ()
{
  using A::var2;
  return var2;
}

// { dg-final { scan-assembler-times "var2\[^\n\r\]*DW_AT_name" 1 } }