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] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
extern "C" void abort (void);
2
extern void g (void);
3
extern void h (void);
4
 
5
int r;
6
int c;
7
int f ()
8
{
9
  // Test that we only initialize i once.
10
  if (++c > 1)
11
    ++r;
12
  return 42;
13
}
14
 
15
void
16
init_ref2_x (void)
17
{
18
  g ();
19
  h ();
20
  if (r != 0)
21
    abort ();
22
}

powered by: WebSVN 2.1.0

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