repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
opt
/
pr15551.C
blob
dc3ddc44662cd5d5026ccde45f1dcb0bfdd4bb36
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
15
int 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
}