summaryrefslogtreecommitdiffstats
path: root/test/Preprocessor/expr_usual_conversions.c
blob: 47aca7beca6f652b27da934a530ca5077fe44522 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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

OpenPOWER on IntegriCloud