gcc/testsuite/g++.dg/debug/dwarf2/ref-4.C
raw| 1 | // { dg-do compile { target c++11 } } |
| 2 | // { dg-options "-g -gno-strict-dwarf -dA" } |
| 3 | // { dg-final { scan-assembler-times "DIE \\(\[^\n\]*\\) DW_TAG_typedef" 2 } } |
| 4 | // { dg-final { scan-assembler-times "DIE \\(\[^\n\]*\\) DW_TAG_ptr_to_member_type" 2 } } |
| 5 | // { dg-final { scan-assembler-times "DIE \\(\[^\n\]*\\) DW_TAG_subroutine_type" 1 } } |
| 6 | |
| 7 | struct A { void foo (); int a; }; |
| 8 | typedef void (A::*PMF) (); |
| 9 | typedef int A::*PMI; |
| 10 | PMF pmf; |
| 11 | PMI pmi; |