summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/dl06/dl06-o2.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/libtests/dl06/dl06-o2.c')
-rw-r--r--testsuites/libtests/dl06/dl06-o2.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/testsuites/libtests/dl06/dl06-o2.c b/testsuites/libtests/dl06/dl06-o2.c
new file mode 100644
index 0000000000..7d6f6c8d57
--- /dev/null
+++ b/testsuites/libtests/dl06/dl06-o2.c
@@ -0,0 +1,38 @@
+/*
+ * Copyright (c) 2018 Chris Johns <chrisj@rtems.org>. All rights reserved.
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#include "dl06-o2.h"
+
+#include <stdlib.h>
+#include <math.h>
+
+#include <rtems/test.h>
+
+#define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
+
+/*
+ * Call function that are not part of the RTEMS kernel base image.
+ */
+
+void dl_o2_func1 (unsigned short s[7])
+{
+ printf("libm: lcong48\n")
+ lcong48 (s);
+}
+
+double dl_o2_func2 (double d1, double d2)
+{
+ printf("libm: atan2\n")
+ return atan2 (d1, d2);
+}
+
+double dl_o2_func3 (double d)
+{
+ printf("libm: tan\n")
+ return tan (d);
+}