[cfe-commits] r44426 - /cfe/trunk/test/Sema/floating-point-compare.c
Ted Kremenek
kremenek at apple.com
Wed Nov 28 17:03:21 PST 2007
Author: kremenek
Date: Wed Nov 28 19:03:21 2007
New Revision: 44426
URL: http://llvm.org/viewvc/llvm-project?rev=44426&view=rev
Log:
Fixed test case to not expect a warning when one should not be emitted.
Removed redundant test case.
Modified:
cfe/trunk/test/Sema/floating-point-compare.c
Modified: cfe/trunk/test/Sema/floating-point-compare.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/floating-point-compare.c?rev=44426&r1=44425&r2=44426&view=diff
==============================================================================
--- cfe/trunk/test/Sema/floating-point-compare.c (original)
+++ cfe/trunk/test/Sema/floating-point-compare.c Wed Nov 28 19:03:21 2007
@@ -13,17 +13,13 @@
}
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}}
}
More information about the cfe-commits
mailing list