expr_invalid_tok.c 451 B

123456789101112131415
  1. // RUN: not %clang_cc1 -E %s 2>&1 | grep 'invalid token at start of a preprocessor expression'
  2. // RUN: not %clang_cc1 -E %s 2>&1 | grep 'token is not a valid binary operator in a preprocessor subexpression'
  3. // RUN: not %clang_cc1 -E %s 2>&1 | grep ':14: error: expected end of line in preprocessor expression'
  4. // PR2220
  5. #if 1 * * 2
  6. #endif
  7. #if 4 [ 2
  8. #endif
  9. // PR2284 - The constant-expr production does not including comma.
  10. #if 1 ? 2 : 0, 1
  11. #endif