diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-05 18:03:03 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-05 18:03:03 +0000 |
commit | 32297e69237c121ab693e69d352ed0ce83246c3d (patch) | |
tree | d080f3194ea137f68f9a006b7ef28a26eb0534f1 /gcc/testsuite/g++.dg/init | |
parent | 8a3edb3344c41154c8ff6b4f392faa0a8d0f9612 (diff) | |
download | gcc-32297e69237c121ab693e69d352ed0ce83246c3d.tar.gz |
PR c++/58868
* decl.c (check_initializer): Don't use build_vec_init for arrays
of trivial type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204406 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/init')
-rw-r--r-- | gcc/testsuite/g++.dg/init/array35.C | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/init/array35.C b/gcc/testsuite/g++.dg/init/array35.C new file mode 100644 index 00000000000..6ce6d5cc956 --- /dev/null +++ b/gcc/testsuite/g++.dg/init/array35.C @@ -0,0 +1,3 @@ +// PR c++/58868 + +static struct { const int i; } a[] = { 1 }; |