diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-01-03 16:51:41 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-01-03 16:51:41 +0000 |
commit | 68fca41d679baef05c25eed8c83b1e3d31cf6f71 (patch) | |
tree | d08a78ce2e0359cdea2dda0c9c83749417566ec0 /gcc/testsuite/g++.dg/init | |
parent | 984cebc11eb2b6e7d8d8c0b8007f0c009f8bf385 (diff) | |
download | gcc-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.C | 13 |
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; +} |