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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [paste7.c] - Blame information for rev 247

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do run } */
2
 
3
#define D_2 1, 2
4
#define C_2(X, I0, I1) X##_a = I0, X##_b = I1
5
#define B_2(X, I) C_2(X, I)
6
#define A(N, X) B_##N (X, D_##N)
7
 
8
extern void abort(void);
9
extern void exit(int);
10
 
11
int x_a, x_b;
12
 
13
int main(void)
14
{
15
  A(2, x);
16
  if (x_a != 1 || x_b != 2)
17
    abort();
18
  exit(0);
19
}

powered by: WebSVN 2.1.0

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