URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [array5.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do assemble }
// We tried to create a temporary of unknown size and crashed.
extern int a1[];
extern int a2[];
int foo(int p)
{
int x = (p ? a1 : a2)[1];
return x;
}