1 // RUN: %clang_cc1 -fsyntax-only -Wfloat-equal -verify %s
3 int f1(float x, float y) {
4 return x == y; // expected-warning {{comparing floating point with ==}}
7 int f2(float x, float y) {
8 return x != y; // expected-warning {{comparing floating point with ==}}
12 return x == x; // no-warning
16 return x == 0.0; // no-warning {{comparing}}
20 return x == __builtin_inf(); // no-warning
24 return x == 3.14159; // expected-warning {{comparing}}