diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-28 10:49:39 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-28 10:49:39 +0000 |
commit | 004805e2af84281eb0f8606f83b271df19a44193 (patch) | |
tree | ec6071b233c5eb25a75ff9655fde819dba39da17 /gcc/testsuite/g++.dg/init | |
parent | be7b52a22048bbed91f81bd821522c456709c19b (diff) | |
download | gcc-004805e2af84281eb0f8606f83b271df19a44193.tar.gz |
2012-11-28 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/55497
* g++.dg/init/pr55497.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193885 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/init')
-rw-r--r-- | gcc/testsuite/g++.dg/init/pr55497.C | 15 |
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; |