summaryrefslogtreecommitdiff
path: root/05/tcc-0.9.27/tests/tests2/67_macro_concat.c
blob: c580d3a6445aa05a3352ddcb6b3dde1d1c4e704c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>

#define P(A,B) A ## B ; bob
#define Q(A,B) A ## B+

int main(void)
{
    int bob, jim = 21;
    bob = P(jim,) *= 2;
    printf("jim: %d, bob: %d\n", jim, bob);
    jim = 60 Q(+,)3;
    printf("jim: %d\n", jim);
    return 0;
}