blob: dd1f457d3ec37a93254d31ed0eead6266a382b6d [file] [log] [blame]
// { dg-do compile { target c++11 } }
// { dg-options "-g -gno-strict-dwarf -dA" }
// { dg-final { scan-assembler-times " DW_AT_reference" 1 } }
// { dg-final { scan-assembler-times " DW_AT_rvalue_reference" 1 } }
struct S
{
void foo ();
void bar () &;
void baz () &&;
};
void
test ()
{
S s;
s.foo ();
s.bar ();
S ().baz ();
}