blob: c954daa91a419d819adf2c65f46db41f2ec03e19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// { dg-do compile }
// { dg-options "-g -dA -gdwarf-4 -std=c++0x" }
// { dg-final { scan-assembler-times "DIE\[^\n\r\]*DW_TAG_reference_type" 1 } }
// { dg-final { scan-assembler-times "DIE\[^\n\r\]*DW_TAG_rvalue_reference_type" 1 } }
struct A { A (); ~A (); };
struct B { B (); ~B (); };
void
foo ()
{
A v;
A &a = v;
B &&b = B ();
}
|