floating-point-compare.c revision 3b427b3ba518f7a7293458c2d3d92eebd8458d87
1// RUN: clang -fsyntax-only -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