summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/debug/dwarf2/localclass3.C
blob: be28a19716872c20535f5a82b296d6af5a0edd14 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Test that the A* pointer_type is also within the debug info for f.
// Currently GCC emits it immediately before A, which is simple to test for.
// { dg-options "-g -dA" }

void f()
{
  struct A { int i; } *ap;
  ap->i = 42;
}

// { dg-final { scan-assembler "DW_TAG_pointer_type.\[^)\]*. DW_TAG_structure_type" } }
OpenPOWER on IntegriCloud