| 1 |
// Test that we define A inside the namespace rather than declaring it |
| 2 |
// there and then defining it at CU scope. |
| 3 |
// { dg-options "-gdwarf-2 -dA -fno-debug-types-section" } |
| 4 |
// { dg-final { scan-assembler-not "DW_AT_declaration" } } |
| 5 |
|
| 6 |
namespace N { |
| 7 |
struct A; |
| 8 |
} |
| 9 |
|
| 10 |
struct N::A { } a; |