Added checking (during parsing) of comparison of floating point values using == or !=.
This is the same functionality gcc provides via --Wfloat-equal.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41574 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/floating-point-compare.c b/test/Sema/floating-point-compare.c
new file mode 100644
index 0000000..008bedf
--- /dev/null
+++ b/test/Sema/floating-point-compare.c
@@ -0,0 +1,9 @@
+// RUN: clang -parse-ast-check %s
+
+int foo(float x, float y) {
+  return x == y; // expected-warning {{comparing floating point with ==}}
+} 
+
+int bar(float x, float y) {
+  return x != y; // expected-warning {{comparing floating point with ==}}
+}
\ No newline at end of file