diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/debug/dwarf2/refqual-2.C')
-rw-r--r-- | gcc/testsuite/g++.dg/debug/dwarf2/refqual-2.C | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/debug/dwarf2/refqual-2.C b/gcc/testsuite/g++.dg/debug/dwarf2/refqual-2.C new file mode 100644 index 00000000000..ddf33c1971e --- /dev/null +++ b/gcc/testsuite/g++.dg/debug/dwarf2/refqual-2.C @@ -0,0 +1,17 @@ +// { dg-do compile } +// { dg-options "-O -std=c++11 -g -dA -gno-strict-dwarf" } +// { dg-final { scan-assembler-times "DIE \\(\[^\n\]*\\) DW_TAG_ptr_to_member_type" 1 { xfail { powerpc-ibm-aix* } } } } +// { dg-final { scan-assembler-times " DW_AT_rvalue_reference" 2 { xfail { powerpc-ibm-aix* } } } } +// { dg-final { scan-assembler-not " DW_AT_use_location" { xfail { powerpc-ibm-aix* } } } } +/* It is not clear what if anything we should output for + DW_AT_use_location in a pointer to member function, so we don't + output it for now. */ + +struct S { + void mf(void) &&; +}; + +void S::mf() && {} + +typedef void (S::*pmft)(void) &&; +pmft pmf = &S::mf; |