diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-11-13 18:37:02 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-11-13 18:37:02 +0000 |
commit | 2272f727235eadbd7d6294b8d706f3842cb2e73b (patch) | |
tree | ceed1866e415ee42308400a7930568899223ddb0 /clang/test/Sema/floating-point-compare.c | |
parent | 07328f0b8b4f2a5dfc30817a90a04269c717829e (diff) | |
download | bcm5719-llvm-2272f727235eadbd7d6294b8d706f3842cb2e73b.tar.gz bcm5719-llvm-2272f727235eadbd7d6294b8d706f3842cb2e73b.zip |
Added -Wfloat-equal option to the driver. This makes warnings about
floating point comparisons using == or != an opt-in rather than a default
warning.
Updated test case to use -Wfloat-equal.
llvm-svn: 44053
Diffstat (limited to 'clang/test/Sema/floating-point-compare.c')
-rw-r--r-- | clang/test/Sema/floating-point-compare.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/floating-point-compare.c b/clang/test/Sema/floating-point-compare.c index 62388915a26..cc96be0fd36 100644 --- a/clang/test/Sema/floating-point-compare.c +++ b/clang/test/Sema/floating-point-compare.c @@ -1,4 +1,4 @@ -// RUN: clang -fsyntax-only -verify %s +// RUN: clang -fsyntax-only -Wfloat-equal -verify %s int foo(float x, float y) { return x == y; // expected-warning {{comparing floating point with ==}} |