summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2012-12-03 09:13:58 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2012-12-03 09:13:58 +0000
commitc6b592d4b1d6990b5c7dc669a91ee52a4fb7912e (patch)
tree826e1b3ae77606d22381504b43100336ef683c3d /gcc/testsuite/g++.dg/init
parenta290ac727af941a3931a96bc1d8b8a5e5a09d86e (diff)
downloadgcc-c6b592d4b1d6990b5c7dc669a91ee52a4fb7912e.tar.gz
2012-12-03 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 194073 using svnmerge.py git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@194077 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/init')
-rw-r--r--gcc/testsuite/g++.dg/init/pr55497.C15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/init/pr55497.C b/gcc/testsuite/g++.dg/init/pr55497.C
new file mode 100644
index 00000000000..b50f3fbdfb9
--- /dev/null
+++ b/gcc/testsuite/g++.dg/init/pr55497.C
@@ -0,0 +1,15 @@
+// PR c++/55497
+// { dg-options "-g" }
+
+int get();
+
+struct B
+{
+ B()
+ {
+ static const int v = get();
+ char BUFFER[v];
+ }
+};
+
+B b;