For checking for floating point comparison using == or !=, we now suppress
errors for cases such as "x == x".

Added test case to test this feature.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43447 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/floating-point-compare.c b/test/Sema/floating-point-compare.c
index 6adc228..6238891 100644
--- a/test/Sema/floating-point-compare.c
+++ b/test/Sema/floating-point-compare.c
@@ -7,3 +7,7 @@
 int bar(float x, float y) {
   return x != y; // expected-warning {{comparing floating point with ==}}
 }
+
+int qux(float x) {
+  return x == x; // no-warning
+}