summaryrefslogtreecommitdiff
path: root/05/tcc-0.9.27/tests/tests2/64_macro_nesting.c
blob: 676e5d3ef35d974fc19ee230d7b47082aa1201e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>	// printf()

#define CAT2(a,b) a##b
#define CAT(a,b) CAT2(a,b)
#define AB(x) CAT(x,y)

int main(void)
{
  int xy = 42;
  printf("%d\n", CAT(A,B)(x));
  return 0;
}