floating-point-compare.c revision 9b3d3a9f3d60eff7b7c8d383203ff348527e3874
1// RUN: clang -parse-ast-check %s
2
3int foo(float x, float y) {
4  return x == y; // expected-warning {{comparing floating point with ==}}
5}
6
7int bar(float x, float y) {
8  return x != y; // expected-warning {{comparing floating point with ==}}
9}