aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6/gcc/testsuite/g++.dg/cpp0x/pr42844-2.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.6/gcc/testsuite/g++.dg/cpp0x/pr42844-2.C')
-rw-r--r--gcc-4.6/gcc/testsuite/g++.dg/cpp0x/pr42844-2.C4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc-4.6/gcc/testsuite/g++.dg/cpp0x/pr42844-2.C b/gcc-4.6/gcc/testsuite/g++.dg/cpp0x/pr42844-2.C
index 5af4ff2..4425aac 100644
--- a/gcc-4.6/gcc/testsuite/g++.dg/cpp0x/pr42844-2.C
+++ b/gcc-4.6/gcc/testsuite/g++.dg/cpp0x/pr42844-2.C
@@ -4,6 +4,7 @@
struct A // { dg-message "user-provided default constructor" }
{
+ int i;
A() = default; // { dg-message "not user-provided" }
};
@@ -14,17 +15,20 @@ struct Base
struct Derived : Base // { dg-message "user-provided default constructor" }
{
+ int i;
Derived() = default; // { dg-message "not user-provided" }
};
struct Derived2 : Base // { dg-message "user-provided default constructor" }
{
+ int i;
Derived2() = default; // { dg-message "not user-provided" }
Derived2( Derived2 const& ) = default;
};
struct Derived3 : Base // { dg-message "user-provided default constructor" }
{
+ int i;
Derived3( Derived3 const& ) = default;
Derived3() = default; // { dg-message "not user-provided" }
};