summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/cpp0x
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2014-04-30 14:23:34 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2014-04-30 14:23:34 +0000
commitc2838bebbfe35fd189bba8e013b48e0961b6c144 (patch)
treed62c5376555112d7b7c19566b573399aa6896418 /gcc/testsuite/g++.dg/cpp0x
parentc9fecd9ea000282038fc41d96999f94aa9f53dbc (diff)
downloadppe42-gcc-c2838bebbfe35fd189bba8e013b48e0961b6c144.tar.gz
ppe42-gcc-c2838bebbfe35fd189bba8e013b48e0961b6c144.zip
PR c++/60980
* init.c (build_value_init): Don't try to call an array constructor. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@209936 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x')
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/defaulted49.C15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/defaulted49.C b/gcc/testsuite/g++.dg/cpp0x/defaulted49.C
new file mode 100644
index 00000000000..357be419db7
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp0x/defaulted49.C
@@ -0,0 +1,15 @@
+// PR c++/60980
+// { dg-do compile { target c++11 } }
+
+struct x0
+{
+ x0 () = default;
+};
+struct x1
+{
+ x0 x2[2];
+ void x3 ()
+ {
+ x1 ();
+ }
+};
OpenPOWER on IntegriCloud