Debian Codegraph @

gcc/testsuite/g++.dg/debug/dwarf2/localclass3.C

raw
1 // Test that the A* pointer_type is also within the debug info for f.
2 // Currently GCC emits it immediately before A, which is simple to test for.
3 // { dg-options "-gdwarf-2 -dA" }
4
5 void f()
6 {
7 int j = 5;
8 {
9 struct A { int i; } *ap;
10 ap->i = 42;
11 }
12 }
13
14 // { dg-final { scan-assembler "DW_TAG_pointer_type.\[^)\]*. DW_TAG_structure_type" } }