summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2013-01-03 16:51:41 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2013-01-03 16:51:41 +0000
commit68fca41d679baef05c25eed8c83b1e3d31cf6f71 (patch)
treed08a78ce2e0359cdea2dda0c9c83749417566ec0 /gcc/testsuite/g++.dg/init
parent984cebc11eb2b6e7d8d8c0b8007f0c009f8bf385 (diff)
downloadgcc-68fca41d679baef05c25eed8c83b1e3d31cf6f71.tar.gz
PR c++/53650
* call.c (type_has_extended_temps): New. * cp-tree.h: Declare it. * decl.c (check_initializer): Use build_aggr_init for arrays if it is false. * init.c (build_vec_init): Avoid mixed signed/unsigned arithmetic. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194860 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/init')
-rw-r--r--gcc/testsuite/g++.dg/init/array34.C13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/init/array34.C b/gcc/testsuite/g++.dg/init/array34.C
new file mode 100644
index 00000000000..c5f608b1f87
--- /dev/null
+++ b/gcc/testsuite/g++.dg/init/array34.C
@@ -0,0 +1,13 @@
+// PR c++/53650
+// We should loop over array inits if they don't involve temporaries
+// that need extending.
+// { dg-final { scan-assembler-times "_ZN5ClassC1Ev" 1 } }
+
+struct Class {
+ Class();
+};
+
+int main() {
+ Class table [10] = {};
+ return 0;
+}