| #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 |