URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [array6.C] - Rev 414
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
// { dg-options "-O1" }
int count = 0;
double foo () {
count++;
return 0;
}
double bar () {
const double x[1] = { foo() };
return x[0];
}
int main ()
{
bar();
if (count != 1)
return 1;
}
Go to most recent revision | Compare with Previous | Blame | View Log