aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/981001-4.c
blob: dd3df9cce4b5150b827463b05f3e546142ac4a23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#define P(a,b) P1(a,b)
#define P1(a,b) a##b

#define ONCE(x, y) (x ?: (x = y()))
#define PREFIX

extern int P(PREFIX, init) (void);

int
fun(void)
{
  static int memo;
  return ONCE(memo, P(PREFIX, init));
}