Be careful about comdat boundary in ICF (PR ipa/82352).
[official-gcc.git] / gcc / testsuite / g++.dg / opt / pr15551.C
blobdc3ddc44662cd5d5026ccde45f1dcb0bfdd4bb36
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" }
8 #include <cstring>
9 #include <fstream>
10 #include <cstdio>
11 using namespace std;
13 ostream* logfile;
15 int main () {
17   logfile = new ofstream("bar", ios::out);
19   char expList[20000];
20   strcpy(expList, "foo");
22   delete logfile;
23   remove ("bar");
25   return 0;