summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/debug/dwarf2/imported-module-4.C
blob: a325ce20f633e0b165a5b1ecca7c5bbc305d00ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// PR debug/39379
// { dg-do compile }
// { dg-options "-g -dA -gno-strict-dwarf" }
// { dg-final { scan-assembler "DW_TAG_imported_module" }  }

namespace A
{
  int v;
}

int
f ()
{
  int i;
  {
    using namespace A;
    v++;
    i = v - 1;
  }
  return i;
}