diff --git a/clang/test/Sema/floating-point-compare.c b/clang/test/Sema/floating-point-compare.c index e44ff096b2e6..ae0d0fe15091 100644 --- a/clang/test/Sema/floating-point-compare.c +++ b/clang/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}} }