URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [compat/] [init/] [init-ref2_x.C] - Rev 816
Compare with Previous | Blame | View Log
extern "C" void abort (void);
extern void g (void);
extern void h (void);
int r;
int c;
int f ()
{
// Test that we only initialize i once.
if (++c > 1)
++r;
return 42;
}
void
init_ref2_x (void)
{
g ();
h ();
if (r != 0)
abort ();
}