| 1 |
// { dg-do compile } |
| 2 |
// { dg-options "-O -std=c++11 -g -dA -gno-strict-dwarf" } |
| 3 |
// { dg-final { scan-assembler-times "DIE \\(\[^\n\]*\\) DW_TAG_ptr_to_member_type" 1 } } |
| 4 |
// { dg-final { scan-assembler-times " DW_AT_reference" 2 } } |
| 5 |
// { dg-final { scan-assembler-not " DW_AT_use_location" } } |
| 6 |
/* It is not clear what if anything we should output for |
| 7 |
DW_AT_use_location in a pointer to member function, so we don't |
| 8 |
output it for now. */ |
| 9 |
|
| 10 |
struct S { |
| 11 |
void mf(void) &; |
| 12 |
}; |
| 13 |
|
| 14 |
void S::mf() & {} |
| 15 |
|
| 16 |
typedef void (S::*pmft)(void) &; |
| 17 |
pmft pmf = &S::mf; |