Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/usr.bin/xlint/lint1 use a different function instead o...



details:   https://anonhg.NetBSD.org/src/rev/d45a9ce3fb71
branches:  trunk
changeset: 328866:d45a9ce3fb71
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Apr 21 19:09:52 2014 +0000

description:
use a different function instead of __builtin_isnan, because it is polymorphic
and we don't handle this yet.

diffstat:

 tests/usr.bin/xlint/lint1/d_c99_complex_split.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 330e4aba2f24 -r d45a9ce3fb71 tests/usr.bin/xlint/lint1/d_c99_complex_split.c
--- a/tests/usr.bin/xlint/lint1/d_c99_complex_split.c   Mon Apr 21 18:57:20 2014 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_complex_split.c   Mon Apr 21 19:09:52 2014 +0000
@@ -1,5 +1,8 @@
+int b(double a) {
+       return a == 0;
+}
 void a(void) {
     double _Complex z = 0;
-    if (__builtin_isnan((__real__ z)) && __builtin_isnan((__imag__ z)))
+    if (b(__real__ z) && b(__imag__ z))
        return;
 }



Home | Main Index | Thread Index | Old Index