Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/gen No unused functions if there is no long d...
details: https://anonhg.NetBSD.org/src/rev/d1ddade882e6
branches: trunk
changeset: 326477:d1ddade882e6
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Jan 30 22:15:55 2014 +0000
description:
No unused functions if there is no long double support.
diffstat:
tests/lib/libc/gen/t_floatunditf.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r b0e61a7b60e4 -r d1ddade882e6 tests/lib/libc/gen/t_floatunditf.c
--- a/tests/lib/libc/gen/t_floatunditf.c Thu Jan 30 19:24:06 2014 +0000
+++ b/tests/lib/libc/gen/t_floatunditf.c Thu Jan 30 22:15:55 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_floatunditf.c,v 1.1 2014/01/30 15:04:04 joerg Exp $ */
+/* $NetBSD: t_floatunditf.c,v 1.2 2014/01/30 22:15:55 joerg Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,6 +31,7 @@
#include <inttypes.h>
#include <math.h>
+#ifdef __HAVE_LONG_DOUBLE
static const struct {
uint64_t u64;
long double ld;
@@ -101,8 +102,6 @@
{ 0x1ULL, 0x8p-3L },
};
-long double floatunditf(uint64_t);
-
ATF_TC(floatunditf);
ATF_TC_HEAD(floatunditf, tc)
{
@@ -117,6 +116,7 @@
for (i = 0; i < __arraycount(testcases); ++i)
ATF_CHECK(testcases[i].ld == (long double)testcases[i].u64);
}
+#endif
ATF_TP_ADD_TCS(tp)
{
Home |
Main Index |
Thread Index |
Old Index