commit | bfb4a2138cbbee591a51a3120dee02e6d7436414 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Tue May 01 01:53:49 2012 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Tue May 01 01:53:49 2012 +0000 |
tree | a10aa7f25ec880e5ee99b4819e19085cf956de49 | |
parent | b52637051f81b9bcd3379eddca9889525ee8e3c2 [diff] [blame] |
Turn the mixed-sign-comparison diagnostic into a runtime behavior diagnostic, from Eitan Adler! llvm-svn: 155876
diff --git a/clang/test/Sema/compare.c b/clang/test/Sema/compare.c index 03aebb3..406ade8 100644 --- a/clang/test/Sema/compare.c +++ b/clang/test/Sema/compare.c
@@ -333,3 +333,10 @@ int test11(unsigned y, struct test11S *p) { return y > (p->x >> 24); // no-warning } + +typedef char one_char[1]; +typedef char two_chars[2]; + +void test12(unsigned a) { + if (0 && -1 > a) { } +}