aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/debug/dwarf2/inline-ns-1.C
blob: cae380a21eb8f11a87612f628fd64bfbb6c1ded9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// { dg-options "-O2 -gdwarf-4 -dA -gno-strict-dwarf" }
// { dg-final { scan-assembler-times " DW_AT_export_symbols" 1 } }
// { dg-final { scan-assembler-times "DIE \\(\[^\n\r\]*\\) DW_TAG_imported_module" 2 } }

namespace A
{
  int i = 5;
  inline namespace B
  {
    int j = 6;
    namespace C
    {
      int k = 7;
    };
  };
};
int l = A::i + A::j + A::C::k;
int m = A::i + A::B::j + A::B::C::k;
namespace
{
  int n = 8;
};
int o = n;