opnsense-src/test/Preprocessor/expr_usual_conversions.c

14 lines
234 B
C
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 %s -E 2>&1 | grep warning | wc -l | grep 2
2009-06-02 13:58:47 -04:00
#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