diff options
author | John McCall <rjmccall@apple.com> | 2009-11-05 00:40:04 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-11-05 00:40:04 +0000 |
commit | 644a4181c947bfc0dc7775fc4843c7c1e599ed7c (patch) | |
tree | 8de23ba332040b74f34b82e80191313efd91d726 /clang/test/Parser | |
parent | 90d0b82e12c23ebd429d1f53ac9d013857cf3d47 (diff) | |
download | bcm5719-llvm-644a4181c947bfc0dc7775fc4843c7c1e599ed7c.tar.gz bcm5719-llvm-644a4181c947bfc0dc7775fc4843c7c1e599ed7c.zip |
Implement -Wsign-compare, or at least the actual comparison part of it.
Conditional operands are next.
Fixes part of rdar://problem/7289584.
llvm-svn: 86083
Diffstat (limited to 'clang/test/Parser')
-rw-r--r-- | clang/test/Parser/if-scope-c90.c | 2 | ||||
-rw-r--r-- | clang/test/Parser/if-scope-c99.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Parser/if-scope-c90.c b/clang/test/Parser/if-scope-c90.c index fdc75e9f10b..53987dccbc3 100644 --- a/clang/test/Parser/if-scope-c90.c +++ b/clang/test/Parser/if-scope-c90.c @@ -2,7 +2,7 @@ int f (int z) { - if (z > sizeof (enum {a, b})) + if (z > (int) sizeof (enum {a, b})) return a; return b; } diff --git a/clang/test/Parser/if-scope-c99.c b/clang/test/Parser/if-scope-c99.c index 37cd0e15ab8..b4cb51ca8c4 100644 --- a/clang/test/Parser/if-scope-c99.c +++ b/clang/test/Parser/if-scope-c99.c @@ -2,7 +2,7 @@ int f (int z) { - if (z > sizeof (enum {a, b})) + if (z > (int) sizeof (enum {a, b})) return a; return b; // expected-error{{use of undeclared identifier}} } |