diff options
Diffstat (limited to 'test/Preprocessor/expr_usual_conversions.c')
-rw-r--r-- | test/Preprocessor/expr_usual_conversions.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Preprocessor/expr_usual_conversions.c b/test/Preprocessor/expr_usual_conversions.c new file mode 100644 index 0000000..47aca7b --- /dev/null +++ b/test/Preprocessor/expr_usual_conversions.c @@ -0,0 +1,13 @@ +// RUN: clang-cc %s -E 2>&1 | grep warning | wc -l | grep 2 + +#define INTMAX_MIN (-9223372036854775807LL -1) + +#if (-42 + 0U) / -2 +foo +#endif + +// Shifts don't want the usual conversions: PR2279 +#if (2 << 1U) - 30 >= 0 +#error +#endif + |