From: Ted Kremenek Date: Tue, 13 Nov 2007 19:18:22 +0000 (+0000) Subject: Updated test case to flag about comparisons against constants. We may X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b2c54baed052f8a933e62dfef51a41f41396a87;p=clang 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 --- 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) {