blob: d75bcca76fdfd8958c5a0e1ee2a04b48acff1ba4 [file] [log] [blame]
#define TEST1 1.1
#define TEST2 10
#define TEST3 (TEST1 + TEST2)
#define TEST4 "test"
// The comma operator should actually return the last value (3),
// when returned by a function. This value, however, when assigned to a variable
// will not compile and so libclang tries to fix it and assigns the first
// value (4) to the generated macro variable.
#define TEST5 4, \
2, \
3
#define TEST6 (1 == 1);
#define TEST7(x, y) x *y
#define TEST8 5,2,3
// These tests that special characters are escaped properly.
#define TEST9 "$dollar"
#define TEST10 "test's"