aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-11-13 19:18:22 +0000
committerTed Kremenek <kremenek@apple.com>2007-11-13 19:18:22 +0000
commit1b2c54baed052f8a933e62dfef51a41f41396a87 (patch)
tree5720ea44bd6d9aed7c60cda0619735da1a9d1c41
parentc8f488d1c851fddeb7754d0c9cf98045b17da535 (diff)
Updated test case to flag about comparisons against constants. We may
invert this case (i.e., not flag a warning) in the future. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44059 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Sema/floating-point-compare.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/floating-point-compare.c b/test/Sema/floating-point-compare.c
index d8eff58e92..ac8fed2d62 100644
--- a/test/Sema/floating-point-compare.c
+++ b/test/Sema/floating-point-compare.c
@@ -13,7 +13,7 @@ int qux(float x) {
}
int baz(float x) {
- return x == 0.0; // no-warning
+ return x == 0.0; // expected-warning {{comparing}}
}
int taz(float x) {