From: Kelley Cook Date: Tue, 22 Jun 2004 21:17:16 +0000 (+0000) Subject: pr15551.C: New testcase. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=89b4f108d444fbb752592e7814fa0eef161056a1;p=gcc.git pr15551.C: New testcase. 2004-06-22 Kelley Cook * g++.dg/opt/pr15551.C: New testcase. From-SVN: r83515 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 68598e4ef37..ab024eccbea 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2004-06-22 Kelley Cook + + * g++.dg/opt/pr15551.C: New testcase. + 2004-06-22 H.J. Lu PR target/14800 diff --git a/gcc/testsuite/g++.dg/opt/pr15551.C b/gcc/testsuite/g++.dg/opt/pr15551.C new file mode 100644 index 00000000000..6fd6780ccd2 --- /dev/null +++ b/gcc/testsuite/g++.dg/opt/pr15551.C @@ -0,0 +1,22 @@ +// PR target/15551 +// This used to crash on pentium4-pc-cygwin due to an alloca problem. +// Testcase submitted by Hans Horn to mingw bug tracker +// +// { dg-do run } +// { dg-options "-O3" } + +#include +#include +using namespace std; + +ostream* logfile; + +int main () { + + logfile = new ofstream("bar", ios::out); + + char expList[20000]; + strcpy(expList, "foo"); + + return 0; +}