aboutsummaryrefslogtreecommitdiff
path: root/src/math/trunc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/trunc.c')
-rw-r--r--src/math/trunc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/math/trunc.c b/src/math/trunc.c
index d13711b5..03731387 100644
--- a/src/math/trunc.c
+++ b/src/math/trunc.c
@@ -17,3 +17,11 @@ double trunc(double x)
u.i &= ~m;
return u.f;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif