Debian Codegraph @

gcc/testsuite/g++.dg/debug/dwarf2/ref-2.C

raw
1 // { dg-do compile { target c++11 } }
2 // { dg-options "-g -gno-strict-dwarf -dA" }
3 // { dg-final { scan-assembler-times " DW_AT_reference" 1 } }
4 // { dg-final { scan-assembler-times " DW_AT_rvalue_reference" 1 } }
5
6 struct S
7 {
8 void foo ();
9 void bar () &;
10 void baz () &&;
11 };
12
13 void
14 test ()
15 {
16 S s;
17 s.foo ();
18 s.bar ();
19 S ().baz ();
20 }