URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.old-deja/] [g++.ext/] [namedret3.C] - Rev 839
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// { dg-options "-Wno-deprecated" }
extern "C" void abort();
int f2(int *x)
{
*x = 1;
return 2;
}
int f1() return x // { dg-error "" }
{
f2(&x); // { dg-error "" }
}
void g()
{
int scratch[100];
int i;
for (i = 0; i < 100; ++i)
scratch[i] = 0;
}
int main()
{
g();
if (f1() != 1)
abort ();
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log