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 "-g -dA" } 4 5void 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" } } 15