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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [other/] [array3.C] - Blame information for rev 823

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

Line No. Rev Author Line
1 149 jeremybenn
// PR C++/28906: new on an array causes incomplete arrays to
2
// become complete with the wrong size.
3
 
4
// the bounds of xvalue_store was being set to include want
5
// which was incorrect.
6
 
7
// { dg-do compile }
8
 
9
extern unsigned char xvalue_store[];
10
bool reserve (int want)
11
{
12
  new unsigned char[want];
13
}
14
unsigned char xvalue_store[257];

powered by: WebSVN 2.1.0

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