summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/debug/dwarf2/namespace-2.C
blob: 8715ca684a5a69738be3708d816cda69d7e3977c (plain)
1
2
3
4
5
6
7
8
9
10
// Test that we define A inside the namespace rather than declaring it
// there and then defining it at CU scope.
// { dg-options "-g -dA -fno-debug-types-section" }
// { dg-final { scan-assembler-not "DW_AT_declaration" } }

namespace N {
  struct A;
}

struct N::A { } a;
OpenPOWER on IntegriCloud