aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/debug/dwarf2/inline-ns-2.C
blob: 4d9aed7e219264eb79af984a405b4765ca0789ad (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-5 -dA" }
// { dg-final { scan-assembler-times " DW_AT_export_symbols" 2 } }
// { dg-final { scan-assembler-not "DIE \\(\[^\n\r\]*\\) DW_TAG_imported_module" } }

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;