[cfe-commits] r44059 - /cfe/trunk/test/Sema/floating-point-compare.c
Ted Kremenek
kremenek at apple.com
Tue Nov 13 11:18:22 PST 2007
Author: kremenek
Date: Tue Nov 13 13:18:22 2007
New Revision: 44059
URL: http://llvm.org/viewvc/llvm-project?rev=44059&view=rev
Log:
Updated test case to flag about comparisons against constants. We may
invert this case (i.e., not flag a warning) in the future.
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=44059&r1=44058&r2=44059&view=diff
==============================================================================
--- cfe/trunk/test/Sema/floating-point-compare.c (original)
+++ cfe/trunk/test/Sema/floating-point-compare.c Tue Nov 13 13:18:22 2007
@@ -13,7 +13,7 @@
}
int baz(float x) {
- return x == 0.0; // no-warning
+ return x == 0.0; // expected-warning {{comparing}}
}
int taz(float x) {
More information about the cfe-commits
mailing list