From 1b2c54baed052f8a933e62dfef51a41f41396a87 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 13 Nov 2007 19:18:22 +0000 Subject: [PATCH] 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 --- test/Sema/floating-point-compare.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.40.0