summaryrefslogtreecommitdiff
path: root/05/tcc-0.9.27/tests/pp/15.c
blob: cf13f9a892760bf0067c51ad667d58e1ab7ea5ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// insert a space between two tokens if otherwise they
// would form a single token when read back

#define n(x) x

return (n(long)n(double))d;
return n(A)n(++)n(+)n(B);
return n(A)n(+)n(++)n(B);
return n(A)n(++)n(+)n(+)n(B);

// not a hex float
return n(0x1E)n(-1);

// unlike gcc but correct
// XXX: return n(x)+n(x)-n(1)+n(1)-2;

// unlike gcc, but cannot appear in valid C
// XXX: return n(x)n(x)n(1)n(2)n(x);