summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/debug/dwarf2/refqual-2.C
blob: ddf33c1971e5b3d0da225c9d49c85b88c6aade67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;