From: Ted Kremenek Date: Thu, 29 Nov 2007 01:03:21 +0000 (+0000) Subject: Fixed test case to not expect a warning when one should not be emitted. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b594a4058941d6c71c9deeef60a1d8a68c56335a;p=clang Fixed test case to not expect a warning when one should not be emitted. Removed redundant test case. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44426 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/floating-point-compare.c b/test/Sema/floating-point-compare.c index e44ff096b2..ae0d0fe150 100644 --- a/test/Sema/floating-point-compare.c +++ b/test/Sema/floating-point-compare.c @@ -13,17 +13,13 @@ int f3(float x) { } int f4(float x) { - return x == 0.0; // expected-warning {{comparing}} + return x == 0.0; // no-warning {{comparing}} } int f5(float x) { return x == __builtin_inf(); // no-warning } -int f6(float x) { - return x == 0.0; // no-warning -} - int f7(float x) { return x == 3.14159; // expected-warning {{comparing}} }