gcc/testsuite/g++.dg/debug/dwarf2/rv1.C
raw| 1 | // { dg-do compile { target c++11 } } |
| 2 | // { dg-options "-g -dA -gdwarf-4" } |
| 3 | // { dg-final { scan-assembler-times "DIE\[^\n\r\]*DW_TAG_reference_type" 1 } } |
| 4 | // { dg-final { scan-assembler-times "DIE\[^\n\r\]*DW_TAG_rvalue_reference_type" 1 } } |
| 5 | |
| 6 | struct A { A (); ~A (); }; |
| 7 | struct B { B (); ~B (); }; |
| 8 | |
| 9 | void |
| 10 | foo () |
| 11 | { |
| 12 | A v; |
| 13 | A &a = v; |
| 14 | B &&b = B (); |
| 15 | } |