OpenCores
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 154

Go to most recent revision | 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 ();
}

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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