diff options
Diffstat (limited to 'clang/test/Sema/compare.c')
| -rw-r--r-- | clang/test/Sema/compare.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Sema/compare.c b/clang/test/Sema/compare.c index 75a3cf1f62b..bacd47e33ce 100644 --- a/clang/test/Sema/compare.c +++ b/clang/test/Sema/compare.c @@ -194,6 +194,9 @@ int ints(long a, unsigned long b) { ((short) a < (unsigned short) 0x80000) + // expected-warning {{comparison of integers of different signs}} ((signed char) a < (unsigned char) 0x80000) + // expected-warning {{comparison of integers of different signs}} + // We should be able to avoid warning about this. + (b != (a < 4 ? 1 : 2)) + + 10 ; } |

