summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzehata <zenon.hans.taneka@dhs.sg>2018-12-06 07:02:39 +0800
committerJoel Sherrill <joel@rtems.org>2018-12-05 22:20:36 -0600
commit65b3fba38d796044364738f6e154679321c48ab9 (patch)
tree100b4e919a77ecba3ecf5c4e2a7a040ea6cf6485
parentpsxhdrs: Add POSIX API Signature Compliance Tests for ftw.h (GCI 2018) (diff)
downloadrtems-65b3fba38d796044364738f6e154679321c48ab9.tar.bz2
Added POSIX Compliance Test for complex.h, and adding lines to define CYGWIN until complex.h is fixed (Ticket 3635) . (GCI 2018)
-rw-r--r--testsuites/psxtests/Makefile.am68
-rw-r--r--testsuites/psxtests/psxhdrs/complex/cabs.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/cabsf.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/cabsl.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/cacos.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/cacosf.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/cacosh.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/cacoshf.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/cacoshl.c39
-rw-r--r--testsuites/psxtests/psxhdrs/complex/cacosl.c39
-rw-r--r--testsuites/psxtests/psxhdrs/complex/carg.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/cargf.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/cargl.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/casin.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/casinf.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/casinh.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/casinhf.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/casinhl.c39
-rw-r--r--testsuites/psxtests/psxhdrs/complex/casinl.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/catan.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/catanf.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/catanh.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/catanhf.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/catanhl.c39
-rw-r--r--testsuites/psxtests/psxhdrs/complex/catanl.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/ccos.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/ccosf.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/ccosh.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/ccoshf.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/ccoshl.c39
-rw-r--r--testsuites/psxtests/psxhdrs/complex/ccosl.c39
-rw-r--r--testsuites/psxtests/psxhdrs/complex/cexp.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/cexpf.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/cexpl.c39
-rw-r--r--testsuites/psxtests/psxhdrs/complex/cimag.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/cimagf.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/cimagl.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/clog.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/clogf.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/clogl.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/conj.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/conjf.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/conjl.c39
-rw-r--r--testsuites/psxtests/psxhdrs/complex/cpow.c40
-rw-r--r--testsuites/psxtests/psxhdrs/complex/cpowf.c40
-rw-r--r--testsuites/psxtests/psxhdrs/complex/cpowl.c41
-rw-r--r--testsuites/psxtests/psxhdrs/complex/cproj.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/cprojf.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/cprojl.c39
-rw-r--r--testsuites/psxtests/psxhdrs/complex/creal.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/crealf.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/creall.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/csin.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/csinf.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/csinh.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/csinhf.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/csinhl.c39
-rw-r--r--testsuites/psxtests/psxhdrs/complex/csinl.c39
-rw-r--r--testsuites/psxtests/psxhdrs/complex/csqrt.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/csqrtf.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/csqrtl.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/ctan.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/ctanf.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/ctanh.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/ctanhf.c38
-rw-r--r--testsuites/psxtests/psxhdrs/complex/ctanhl.c39
-rw-r--r--testsuites/psxtests/psxhdrs/complex/ctanl.c39
67 files changed, 2595 insertions, 1 deletions
diff --git a/testsuites/psxtests/Makefile.am b/testsuites/psxtests/Makefile.am
index 32cd6ea464..79eb6269a4 100644
--- a/testsuites/psxtests/Makefile.am
+++ b/testsuites/psxtests/Makefile.am
@@ -1217,7 +1217,73 @@ lib_a_SOURCES = psxhdrs/devctl/posix_devctl.c \
psxhdrs/langinfo/nl_langinfo.c \
psxhdrs/langinfo/nl_langinfo_l.c \
psxhdrs/assert/assert.c \
- psxhdrs/sys/utsname/uname.c
+ psxhdrs/sys/utsname/uname.c \
+ psxhdrs/complex/cabs.c \
+ psxhdrs/complex/cabsf.c \
+ psxhdrs/complex/cabsl.c \
+ psxhdrs/complex/cacos.c \
+ psxhdrs/complex/cacosf.c \
+ psxhdrs/complex/cacosh.c \
+ psxhdrs/complex/cacoshf.c \
+ psxhdrs/complex/cacoshl.c \
+ psxhdrs/complex/cacosl.c \
+ psxhdrs/complex/carg.c \
+ psxhdrs/complex/cargf.c \
+ psxhdrs/complex/cargl.c \
+ psxhdrs/complex/casin.c \
+ psxhdrs/complex/casinf.c \
+ psxhdrs/complex/casinh.c \
+ psxhdrs/complex/casinhf.c \
+ psxhdrs/complex/casinhl.c \
+ psxhdrs/complex/casinl.c \
+ psxhdrs/complex/catan.c \
+ psxhdrs/complex/catanf.c \
+ psxhdrs/complex/catanh.c \
+ psxhdrs/complex/catanhf.c \
+ psxhdrs/complex/catanhl.c \
+ psxhdrs/complex/catanl.c \
+ psxhdrs/complex/ccos.c \
+ psxhdrs/complex/ccosf.c \
+ psxhdrs/complex/ccosh.c \
+ psxhdrs/complex/ccoshf.c \
+ psxhdrs/complex/ccoshl.c \
+ psxhdrs/complex/ccosl.c \
+ psxhdrs/complex/cexp.c \
+ psxhdrs/complex/cexpf.c \
+ psxhdrs/complex/cexpl.c \
+ psxhdrs/complex/cimag.c \
+ psxhdrs/complex/cimagf.c \
+ psxhdrs/complex/cimagl.c \
+ psxhdrs/complex/clog.c \
+ psxhdrs/complex/clogf.c \
+ psxhdrs/complex/clogl.c \
+ psxhdrs/complex/conj.c \
+ psxhdrs/complex/conjf.c \
+ psxhdrs/complex/conjl.c \
+ psxhdrs/complex/cpow.c \
+ psxhdrs/complex/cpowf.c \
+ psxhdrs/complex/cpowl.c \
+ psxhdrs/complex/cproj.c \
+ psxhdrs/complex/cprojf.c \
+ psxhdrs/complex/cprojl.c \
+ psxhdrs/complex/creal.c \
+ psxhdrs/complex/crealf.c \
+ psxhdrs/complex/creall.c \
+ psxhdrs/complex/csin.c \
+ psxhdrs/complex/csinf.c \
+ psxhdrs/complex/csinh.c \
+ psxhdrs/complex/csinhf.c \
+ psxhdrs/complex/csinhl.c \
+ psxhdrs/complex/csinl.c \
+ psxhdrs/complex/csqrt.c \
+ psxhdrs/complex/csqrtf.c \
+ psxhdrs/complex/csqrtl.c \
+ psxhdrs/complex/ctan.c \
+ psxhdrs/complex/ctanf.c \
+ psxhdrs/complex/ctanh.c \
+ psxhdrs/complex/ctanhf.c \
+ psxhdrs/complex/ctanhl.c \
+ psxhdrs/complex/ctanl.c
## Not supported by RTEMS, but POSIX API Compliance tests exist.
## lib_a_SOURCES += psxhdrs/ulimit/ulimit.c
diff --git a/testsuites/psxtests/psxhdrs/complex/cabs.c b/testsuites/psxtests/psxhdrs/complex/cabs.c
new file mode 100644
index 0000000000..cf84ce1805
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/cabs.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief cabs() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ double complex number;
+ double result;
+
+ number = 1.0 + 1.0 * I;
+ result = cabs(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/cabsf.c b/testsuites/psxtests/psxhdrs/complex/cabsf.c
new file mode 100644
index 0000000000..038f53c1fb
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/cabsf.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief cabsf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ float complex number;
+ float result;
+
+ number = 1.0 + 1.0 * I;
+ result = cabsf(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/cabsl.c b/testsuites/psxtests/psxhdrs/complex/cabsl.c
new file mode 100644
index 0000000000..bfec1fd418
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/cabsl.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief cabsl() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ long double complex number;
+ long double result;
+
+ number = 1.0 + 1.0 * I;
+ result = cabsl(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/cacos.c b/testsuites/psxtests/psxhdrs/complex/cacos.c
new file mode 100644
index 0000000000..1881cb965d
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/cacos.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief cacos() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ double complex number;
+ double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = cacos(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/cacosf.c b/testsuites/psxtests/psxhdrs/complex/cacosf.c
new file mode 100644
index 0000000000..8f28c138bc
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/cacosf.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief cacosf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ float complex number;
+ float complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = cacosf(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/cacosh.c b/testsuites/psxtests/psxhdrs/complex/cacosh.c
new file mode 100644
index 0000000000..1a93faaf09
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/cacosh.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief cacosh() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ double complex number;
+ double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = cacosh(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/cacoshf.c b/testsuites/psxtests/psxhdrs/complex/cacoshf.c
new file mode 100644
index 0000000000..4718f7b646
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/cacoshf.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief cacoshf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ float complex number;
+ float complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = cacoshf(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/cacoshl.c b/testsuites/psxtests/psxhdrs/complex/cacoshl.c
new file mode 100644
index 0000000000..51d7ca848f
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/cacoshl.c
@@ -0,0 +1,39 @@
+/**
+ * @file
+ * @brief cacoshl() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#define __CYGWIN__ 1 /* required until ticker 3635 fixed */
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ long double complex number;
+ long double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = cacoshl(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/cacosl.c b/testsuites/psxtests/psxhdrs/complex/cacosl.c
new file mode 100644
index 0000000000..a484c881da
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/cacosl.c
@@ -0,0 +1,39 @@
+/**
+ * @file
+ * @brief cacosl() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#define __CYGWIN__ 1 /* required until ticker 3635 fixed */
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ long double complex number;
+ long double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = cacosl(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/carg.c b/testsuites/psxtests/psxhdrs/complex/carg.c
new file mode 100644
index 0000000000..1252b4165d
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/carg.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief carg() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ double complex number;
+ double result;
+
+ number = 1.0 + 1.0 * I;
+ result = carg(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/cargf.c b/testsuites/psxtests/psxhdrs/complex/cargf.c
new file mode 100644
index 0000000000..ee47c6868c
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/cargf.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief cargf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ float complex number;
+ float result;
+
+ number = 1.0 + 1.0 * I;
+ result = cargf(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/cargl.c b/testsuites/psxtests/psxhdrs/complex/cargl.c
new file mode 100644
index 0000000000..90e5040f0d
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/cargl.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief cargl() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ long double complex number;
+ long double result;
+
+ number = 1.0 + 1.0 * I;
+ result = cargl(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/casin.c b/testsuites/psxtests/psxhdrs/complex/casin.c
new file mode 100644
index 0000000000..85ccf2273f
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/casin.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief casin() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ double complex number;
+ double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = casin(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/casinf.c b/testsuites/psxtests/psxhdrs/complex/casinf.c
new file mode 100644
index 0000000000..943402b15d
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/casinf.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief casinf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ float complex number;
+ float complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = casinf(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/casinh.c b/testsuites/psxtests/psxhdrs/complex/casinh.c
new file mode 100644
index 0000000000..2e399f0e3f
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/casinh.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief casinh() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ double complex number;
+ double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = casinh(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/casinhf.c b/testsuites/psxtests/psxhdrs/complex/casinhf.c
new file mode 100644
index 0000000000..856942fd49
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/casinhf.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief casinhf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ float complex number;
+ float complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = casinhf(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/casinhl.c b/testsuites/psxtests/psxhdrs/complex/casinhl.c
new file mode 100644
index 0000000000..5d488826d0
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/casinhl.c
@@ -0,0 +1,39 @@
+/**
+ * @file
+ * @brief casinhl() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#define __CYGWIN__ 1 /* required until ticker 3635 fixed */
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ long double complex number;
+ long double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = casinhl(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/casinl.c b/testsuites/psxtests/psxhdrs/complex/casinl.c
new file mode 100644
index 0000000000..4a0bb142cb
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/casinl.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief casinl() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ long double complex number;
+ long double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = casinl(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/catan.c b/testsuites/psxtests/psxhdrs/complex/catan.c
new file mode 100644
index 0000000000..11e39b3e3a
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/catan.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief catan() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ double complex number;
+ double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = catan(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/catanf.c b/testsuites/psxtests/psxhdrs/complex/catanf.c
new file mode 100644
index 0000000000..ac74ca520b
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/catanf.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief catanf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ float complex number;
+ float complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = catanf(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/catanh.c b/testsuites/psxtests/psxhdrs/complex/catanh.c
new file mode 100644
index 0000000000..9f249deb49
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/catanh.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief catanh() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ double complex number;
+ double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = catanh(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/catanhf.c b/testsuites/psxtests/psxhdrs/complex/catanhf.c
new file mode 100644
index 0000000000..8ca5d52179
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/catanhf.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief catanhf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ float complex number;
+ float complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = catanhf(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/catanhl.c b/testsuites/psxtests/psxhdrs/complex/catanhl.c
new file mode 100644
index 0000000000..2dc5db8850
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/catanhl.c
@@ -0,0 +1,39 @@
+/**
+ * @file
+ * @brief catanhl() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#define __CYGWIN__ 1 /* required until ticker 3635 fixed */
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ long double complex number;
+ long double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = catanhl(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/catanl.c b/testsuites/psxtests/psxhdrs/complex/catanl.c
new file mode 100644
index 0000000000..0ad47061aa
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/catanl.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief catanl() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ long double complex number;
+ long double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = catanl(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/ccos.c b/testsuites/psxtests/psxhdrs/complex/ccos.c
new file mode 100644
index 0000000000..0e16bda9cc
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/ccos.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief ccos() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ double complex number;
+ double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = ccos(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/ccosf.c b/testsuites/psxtests/psxhdrs/complex/ccosf.c
new file mode 100644
index 0000000000..2c665b7941
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/ccosf.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief ccosf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ float complex number;
+ float complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = ccosf(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/ccosh.c b/testsuites/psxtests/psxhdrs/complex/ccosh.c
new file mode 100644
index 0000000000..a40a31b900
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/ccosh.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief ccosh() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ double complex number;
+ double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = ccosh(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/ccoshf.c b/testsuites/psxtests/psxhdrs/complex/ccoshf.c
new file mode 100644
index 0000000000..2a72365844
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/ccoshf.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief ccoshf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ float complex number;
+ float complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = ccoshf(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/ccoshl.c b/testsuites/psxtests/psxhdrs/complex/ccoshl.c
new file mode 100644
index 0000000000..b943d8ba57
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/ccoshl.c
@@ -0,0 +1,39 @@
+/**
+ * @file
+ * @brief ccoshl() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT,hl INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#define __CYGWIN__ 1 /* required until ticker 3635 fixed */
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ long double complex number;
+ long double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = ccoshl(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/ccosl.c b/testsuites/psxtests/psxhdrs/complex/ccosl.c
new file mode 100644
index 0000000000..647a664629
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/ccosl.c
@@ -0,0 +1,39 @@
+/**
+ * @file
+ * @brief ccosl() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#define __CYGWIN__ 1 /* required until ticker 3635 fixed */
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ long double complex number;
+ long double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = ccosl(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/cexp.c b/testsuites/psxtests/psxhdrs/complex/cexp.c
new file mode 100644
index 0000000000..20c530dc30
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/cexp.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief cexp() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ double complex number;
+ double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = cexp(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/cexpf.c b/testsuites/psxtests/psxhdrs/complex/cexpf.c
new file mode 100644
index 0000000000..c83a0f07a7
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/cexpf.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief cexpf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ float complex number;
+ float complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = cexpf(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/cexpl.c b/testsuites/psxtests/psxhdrs/complex/cexpl.c
new file mode 100644
index 0000000000..603049f415
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/cexpl.c
@@ -0,0 +1,39 @@
+/**
+ * @file
+ * @brief cexpl() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#define __CYGWIN__ 1 /* required until ticker 3635 fixed */
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ long double complex number;
+ long double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = cexpl(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/cimag.c b/testsuites/psxtests/psxhdrs/complex/cimag.c
new file mode 100644
index 0000000000..d888c693ce
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/cimag.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief cimag() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ double complex number;
+ double result;
+
+ number = 1.0 + 1.0 * I;
+ result = cimag(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/cimagf.c b/testsuites/psxtests/psxhdrs/complex/cimagf.c
new file mode 100644
index 0000000000..f1a40a2938
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/cimagf.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief cimagf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ float complex number;
+ float result;
+
+ number = 1.0 + 1.0 * I;
+ result = cimagf(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/cimagl.c b/testsuites/psxtests/psxhdrs/complex/cimagl.c
new file mode 100644
index 0000000000..8ae7c26440
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/cimagl.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief cimagl() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ long double complex number;
+ long double result;
+
+ number = 1.0 + 1.0 * I;
+ result = cimagl(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/clog.c b/testsuites/psxtests/psxhdrs/complex/clog.c
new file mode 100644
index 0000000000..865b5c6758
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/clog.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief clog() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ double complex number;
+ double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = clog(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/clogf.c b/testsuites/psxtests/psxhdrs/complex/clogf.c
new file mode 100644
index 0000000000..bf98d156e1
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/clogf.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief clogf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ float complex number;
+ float complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = clogf(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/clogl.c b/testsuites/psxtests/psxhdrs/complex/clogl.c
new file mode 100644
index 0000000000..b90902bf00
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/clogl.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief clogl() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ long double complex number;
+ long double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = clogl(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/conj.c b/testsuites/psxtests/psxhdrs/complex/conj.c
new file mode 100644
index 0000000000..ef727d6a92
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/conj.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief conj() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ double complex number;
+ double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = conj(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/conjf.c b/testsuites/psxtests/psxhdrs/complex/conjf.c
new file mode 100644
index 0000000000..642864c228
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/conjf.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief conjf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ float complex number;
+ float complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = conjf(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/conjl.c b/testsuites/psxtests/psxhdrs/complex/conjl.c
new file mode 100644
index 0000000000..c6ebbd1df4
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/conjl.c
@@ -0,0 +1,39 @@
+/**
+ * @file
+ * @brief conjl() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#define __CYGWIN__ 1 /* required until ticker 3635 fixed */
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ long double complex number;
+ long double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = conjl(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/cpow.c b/testsuites/psxtests/psxhdrs/complex/cpow.c
new file mode 100644
index 0000000000..2fc206c1af
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/cpow.c
@@ -0,0 +1,40 @@
+/**
+ * @file
+ * @brief cpow() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ double complex number;
+ double complex exponent;
+ double complex result;
+
+ number = 1.0 + 1.0 * I;
+ exponent = 1.0 + 1.0 * I;
+ result = cpow(number, exponent);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/cpowf.c b/testsuites/psxtests/psxhdrs/complex/cpowf.c
new file mode 100644
index 0000000000..6b723abd72
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/cpowf.c
@@ -0,0 +1,40 @@
+/**
+ * @file
+ * @brief cpowf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ float complex number;
+ float complex exponent;
+ float complex result;
+
+ number = 1.0 + 1.0 * I;
+ exponent = 1.0 + 1.0 * I;
+ result = cpowf(number, exponent);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/cpowl.c b/testsuites/psxtests/psxhdrs/complex/cpowl.c
new file mode 100644
index 0000000000..9a946722b2
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/cpowl.c
@@ -0,0 +1,41 @@
+/**
+ * @file
+ * @brief cpowl() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#define __CYGWIN__ 1 /* required until ticker 3635 fixed */
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ long double complex number;
+ long double complex exponent;
+ long double complex result;
+
+ number = 1.0 + 1.0 * I;
+ exponent = 1.0 + 1.0 * I;
+ result = cpowl(number, exponent);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/cproj.c b/testsuites/psxtests/psxhdrs/complex/cproj.c
new file mode 100644
index 0000000000..fce6aac1ab
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/cproj.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief cproj() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ double complex number;
+ double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = cproj(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/cprojf.c b/testsuites/psxtests/psxhdrs/complex/cprojf.c
new file mode 100644
index 0000000000..69144c0157
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/cprojf.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief cprojf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ float complex number;
+ float complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = cprojf(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/cprojl.c b/testsuites/psxtests/psxhdrs/complex/cprojl.c
new file mode 100644
index 0000000000..2e05cb6b01
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/cprojl.c
@@ -0,0 +1,39 @@
+/**
+ * @file
+ * @brief cprojl() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#define __CYGWIN__ 1 /* required until ticker 3635 fixed */
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ long double complex number;
+ long double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = cprojl(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/creal.c b/testsuites/psxtests/psxhdrs/complex/creal.c
new file mode 100644
index 0000000000..e823f5d563
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/creal.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief creal() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ double complex number;
+ double result;
+
+ number = 1.0 + 1.0 * I;
+ result = creal(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/crealf.c b/testsuites/psxtests/psxhdrs/complex/crealf.c
new file mode 100644
index 0000000000..3b082c8e19
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/crealf.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief crealf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ float complex number;
+ float result;
+
+ number = 1.0 + 1.0 * I;
+ result = crealf(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/creall.c b/testsuites/psxtests/psxhdrs/complex/creall.c
new file mode 100644
index 0000000000..a5feee9bae
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/creall.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief creall() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ long double complex number;
+ long double result;
+
+ number = 1.0 + 1.0 * I;
+ result = creall(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/csin.c b/testsuites/psxtests/psxhdrs/complex/csin.c
new file mode 100644
index 0000000000..abd93b57a1
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/csin.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief csin() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ double complex number;
+ double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = csin(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/csinf.c b/testsuites/psxtests/psxhdrs/complex/csinf.c
new file mode 100644
index 0000000000..60ac075685
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/csinf.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief csinf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ float complex number;
+ float complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = csinf(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/csinh.c b/testsuites/psxtests/psxhdrs/complex/csinh.c
new file mode 100644
index 0000000000..5e65a49b3b
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/csinh.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief csinh() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ double complex number;
+ double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = csinh(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/csinhf.c b/testsuites/psxtests/psxhdrs/complex/csinhf.c
new file mode 100644
index 0000000000..2c4d744c1b
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/csinhf.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief csinhf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ float complex number;
+ float complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = csinhf(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/csinhl.c b/testsuites/psxtests/psxhdrs/complex/csinhl.c
new file mode 100644
index 0000000000..b3c2911a1d
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/csinhl.c
@@ -0,0 +1,39 @@
+/**
+ * @file
+ * @brief csinhl() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#define __CYGWIN__ 1 /* required until ticker 3635 fixed */
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ long double complex number;
+ long double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = csinhl(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/csinl.c b/testsuites/psxtests/psxhdrs/complex/csinl.c
new file mode 100644
index 0000000000..17fd0635cc
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/csinl.c
@@ -0,0 +1,39 @@
+/**
+ * @file
+ * @brief csinl() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#define __CYGWIN__ 1 /* required until ticker 3635 fixed */
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ long double complex number;
+ long double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = csinl(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/csqrt.c b/testsuites/psxtests/psxhdrs/complex/csqrt.c
new file mode 100644
index 0000000000..1e38e9f28d
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/csqrt.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief csqrt() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ double complex number;
+ double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = csqrt(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/csqrtf.c b/testsuites/psxtests/psxhdrs/complex/csqrtf.c
new file mode 100644
index 0000000000..788b6c8c37
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/csqrtf.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief csqrtf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ float complex number;
+ float complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = csqrtf(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/csqrtl.c b/testsuites/psxtests/psxhdrs/complex/csqrtl.c
new file mode 100644
index 0000000000..a0fb8d3f08
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/csqrtl.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief csqrtl() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ long double complex number;
+ long double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = csqrtl(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/ctan.c b/testsuites/psxtests/psxhdrs/complex/ctan.c
new file mode 100644
index 0000000000..c799076fc0
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/ctan.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief ctan() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ double complex number;
+ double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = ctan(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/ctanf.c b/testsuites/psxtests/psxhdrs/complex/ctanf.c
new file mode 100644
index 0000000000..caa2f64d8c
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/ctanf.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief ctanf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ float complex number;
+ float complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = ctanf(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/ctanh.c b/testsuites/psxtests/psxhdrs/complex/ctanh.c
new file mode 100644
index 0000000000..314538f869
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/ctanh.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief ctanh() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ double complex number;
+ double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = ctanh(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/ctanhf.c b/testsuites/psxtests/psxhdrs/complex/ctanhf.c
new file mode 100644
index 0000000000..71c76330ff
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/ctanhf.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief ctanhf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ float complex number;
+ float complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = ctanhf(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/ctanhl.c b/testsuites/psxtests/psxhdrs/complex/ctanhl.c
new file mode 100644
index 0000000000..3e9a8ef865
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/ctanhl.c
@@ -0,0 +1,39 @@
+/**
+ * @file
+ * @brief ctanhl() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#define __CYGWIN__ 1 /* required until ticker 3635 fixed */
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ long double complex number;
+ long double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = ctanhl(number);
+ return (result != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/complex/ctanl.c b/testsuites/psxtests/psxhdrs/complex/ctanl.c
new file mode 100644
index 0000000000..9c0adbc3ca
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/complex/ctanl.c
@@ -0,0 +1,39 @@
+/**
+ * @file
+ * @brief ctanl() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#define __CYGWIN__ 1 /* required until ticker 3635 fixed */
+#include <complex.h>
+
+int test(void);
+
+int test(void)
+{
+ long double complex number;
+ long double complex result;
+
+ number = 1.0 + 1.0 * I;
+ result = ctanl(number);
+ return (result != 0);
+}