2 // { dg-do run { target c++11 } }
7 constexpr Sub() : i(-1) {} // remove constexpr and it works as expected
8 Sub(Sub&& rhs); // remove this constructor and it works as epxected.
11 // v-- move this inline and it works as expected
12 // v-- remove ': Sub()' and it works as expected
13 Sub::Sub(Sub&& rhs) : Sub() { int tmp = i; i = rhs.i; rhs.i = tmp; }
16 // v-- remove '[1]' and it works as expected
17 // v-- add '= {}' and it works as expected
20 // v-- add ': s{}' and it works as expected
21 // v-- removing this constructor makes it work as expected