Ted Kremenek | 9b3d3a9 | 2007-08-29 18:06:12 +0000 | [diff] [blame] | 1 | // RUN: clang -parse-ast-check %s |
2 | |||||
3 | int foo(float x, float y) { | ||||
4 | return x == y; // expected-warning {{comparing floating point with ==}} | ||||
5 | } | ||||
6 | |||||
7 | int bar(float x, float y) { | ||||
8 | return x != y; // expected-warning {{comparing floating point with ==}} | ||||
9 | } |