OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [981001-4.c] - Blame information for rev 859

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

Line No. Rev Author Line
1 297 jeremybenn
#define P(a,b) P1(a,b)
2
#define P1(a,b) a##b
3
 
4
#define ONCE(x, y) (x ?: (x = y()))
5
#define PREFIX
6
 
7
extern int P(PREFIX, init) (void);
8
 
9
int
10
fun(void)
11
{
12
  static int memo;
13
  return ONCE(memo, P(PREFIX, init));
14
}

powered by: WebSVN 2.1.0

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