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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [other/] [array4.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR C++/28906: new on an array causes incomplete arrays to
2
// become complete with the wrong size.
3
// The sizeof machineMain should be 5 and not 100.
4
// { dg-do run }
5
 
6
 
7
extern char machineMain[];
8
void sort (long len)
9
{
10
  new char[100];
11
}
12
char machineMain[] = "main";
13
int main(void)
14
{
15
  if (sizeof(machineMain)!=sizeof("main"))
16
    __builtin_abort();
17
}
18
 
19
 

powered by: WebSVN 2.1.0

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