Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/defaulted68.C

raw
1 // PR c++/116162
2 // { dg-do compile { target c++11 } }
3 // { dg-additional-options "-Wno-defaulted-function-deleted" }
4
5 struct C0 {
6 C0(C0&) = default;
7 };
8
9 struct C1 {
10 C1(volatile C1&) = default;
11 };
12
13 struct C2 {
14 C2(const C2&) = default;
15 };
16
17 struct C3 {
18 C3(const volatile C3&) = default;
19 };
20
21 struct M0 {
22 M0(M0&&) = default;
23 };
24
25 struct M1 {
26 M1(const M1&&) = default;
27 };
28
29 struct M2 {
30 M2(volatile M2&&) = default;
31 };
32
33 struct M3 {
34 M3(const volatile M3&&) = default;
35 };