From ec2b103c267a06a66e926f62cd96767b280f5cf5 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Tue, 2 Jun 2009 17:58:47 +0000 Subject: Import Clang, at r72732. --- test/Preprocessor/expr_invalid_tok.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/Preprocessor/expr_invalid_tok.c (limited to 'test/Preprocessor/expr_invalid_tok.c') diff --git a/test/Preprocessor/expr_invalid_tok.c b/test/Preprocessor/expr_invalid_tok.c new file mode 100644 index 0000000000000..5e750a462be01 --- /dev/null +++ b/test/Preprocessor/expr_invalid_tok.c @@ -0,0 +1,15 @@ +// RUN: not clang-cc -E %s 2>&1 | grep 'invalid token at start of a preprocessor expression' && +// RUN: not clang-cc -E %s 2>&1 | grep 'token is not a valid binary operator in a preprocessor subexpression' && +// RUN: not clang-cc -E %s 2>&1 | grep ':14: error: expected end of line in preprocessor expression' +// PR2220 + +#if 1 * * 2 +#endif + +#if 4 [ 2 +#endif + + +// PR2284 - The constant-expr production does not including comma. +#if 1 ? 2 : 0, 1 +#endif -- cgit v1.2.3