floating-point-compare.c revision 9f3d942e9970bc8f51add390b2a2c46b5a2ab747
1// RUN: clang -parse-ast -verify %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}
10