Hi,

With tcc I get:

$ cat cat.c
#define CAT2(a,b) a##b
#define CAT(a,b) CAT2(a,b)
#define AB(x) CAT(x,y)
CAT(A,B)(x)
$ ./tcc -E cat.c
# 2 "cat.c"


CAT(x,y)

But I think this is wrong, because gcc -E and clang -E both expand the
last line further to give just:

xy

The test case is massively reduced from some real code!

Jay.

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to