1 // PR target/15551 2 // This used to crash on pentium4-pc-cygwin due to an alloca problem. 3 // Testcase submitted by Hans Horn to mingw bug tracker 4 // 5 // { dg-do run } 6 // { dg-options "-O3" } 7 8 #include <cstring> 9 #include <fstream> 10 #include <cstdio> 11 using namespace std; 12 13 ostream* logfile; 14 main()15int main () { 16 17 logfile = new ofstream("bar", ios::out); 18 19 char expList[20000]; 20 strcpy(expList, "foo"); 21 22 delete logfile; 23 remove ("bar"); 24 25 return 0; 26 } 27