29 lines · c
1// RUN: not %clang_cc1 -E %s 2>&1 | FileCheck %s2// PR22203 4// CHECK: invalid token at start of a preprocessor expression5#if 1 * * 26#endif7 8// CHECK: token is not a valid binary operator in a preprocessor subexpression9#if 4 [ 210#endif11 12 13// PR2284 - The constant-expr production does not including comma.14// CHECK: [[@LINE+1]]:14: error: expected end of line in preprocessor expression15#if 1 ? 2 : 0, 116#endif17 18// CHECK: [[@LINE+1]]:5: error: function-like macro 'FOO' is not defined19#if FOO(1, 2, 3)20#endif21 22// CHECK: [[@LINE+1]]:9: error: function-like macro 'BAR' is not defined23#if 1 + BAR(1, 2, 3)24#endif25 26// CHECK: [[@LINE+1]]:10: error: token is not a valid binary operator27#if (FOO)(1, 2, 3)28#endif29