OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [opt/] [pr15551.C] - Blame information for rev 841

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// 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 
9
#include 
10
#include 
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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.