[rtems commit] Added POSIX Compliance Test for complex.h, and adding lines to define CYGWIN until complex.h is fixed (Ticket 3635) . (GCI 2018)

Joel Sherrill joel at rtems.org
Thu Dec 6 04:26:53 UTC 2018


Module:    rtems
Branch:    master
Commit:    65b3fba38d796044364738f6e154679321c48ab9
Changeset: http://git.rtems.org/rtems/commit/?id=65b3fba38d796044364738f6e154679321c48ab9

Author:    zehata <zenon.hans.taneka at dhs.sg>
Date:      Thu Dec  6 07:02:39 2018 +0800

Added POSIX Compliance Test for complex.h, and adding lines to define CYGWIN until complex.h is fixed (Ticket 3635) . (GCI 2018)

---

 testsuites/psxtests/Makefile.am               | 68 ++++++++++++++++++++++++++-
 testsuites/psxtests/psxhdrs/complex/cabs.c    | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/cabsf.c   | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/cabsl.c   | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/cacos.c   | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/cacosf.c  | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/cacosh.c  | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/cacoshf.c | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/cacoshl.c | 39 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/cacosl.c  | 39 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/carg.c    | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/cargf.c   | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/cargl.c   | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/casin.c   | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/casinf.c  | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/casinh.c  | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/casinhf.c | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/casinhl.c | 39 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/casinl.c  | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/catan.c   | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/catanf.c  | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/catanh.c  | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/catanhf.c | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/catanhl.c | 39 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/catanl.c  | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/ccos.c    | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/ccosf.c   | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/ccosh.c   | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/ccoshf.c  | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/ccoshl.c  | 39 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/ccosl.c   | 39 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/cexp.c    | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/cexpf.c   | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/cexpl.c   | 39 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/cimag.c   | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/cimagf.c  | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/cimagl.c  | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/clog.c    | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/clogf.c   | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/clogl.c   | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/conj.c    | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/conjf.c   | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/conjl.c   | 39 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/cpow.c    | 40 ++++++++++++++++
 testsuites/psxtests/psxhdrs/complex/cpowf.c   | 40 ++++++++++++++++
 testsuites/psxtests/psxhdrs/complex/cpowl.c   | 41 ++++++++++++++++
 testsuites/psxtests/psxhdrs/complex/cproj.c   | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/cprojf.c  | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/cprojl.c  | 39 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/creal.c   | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/crealf.c  | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/creall.c  | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/csin.c    | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/csinf.c   | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/csinh.c   | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/csinhf.c  | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/csinhl.c  | 39 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/csinl.c   | 39 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/csqrt.c   | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/csqrtf.c  | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/csqrtl.c  | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/ctan.c    | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/ctanf.c   | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/ctanh.c   | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/ctanhf.c  | 38 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/ctanhl.c  | 39 +++++++++++++++
 testsuites/psxtests/psxhdrs/complex/ctanl.c   | 39 +++++++++++++++
 67 files changed, 2595 insertions(+), 1 deletion(-)

diff --git a/testsuites/psxtests/Makefile.am b/testsuites/psxtests/Makefile.am
index 32cd6ea..79eb626 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 0000000..cf84ce1
--- /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 0000000..038f53c
--- /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 0000000..bfec1fd
--- /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 0000000..1881cb9
--- /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 0000000..8f28c13
--- /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 0000000..1a93faa
--- /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 0000000..4718f7b
--- /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 0000000..51d7ca8
--- /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 0000000..a484c88
--- /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 0000000..1252b41
--- /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 0000000..ee47c68
--- /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 0000000..90e5040
--- /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 0000000..85ccf22
--- /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 0000000..943402b
--- /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 0000000..2e399f0
--- /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 0000000..856942f
--- /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 0000000..5d48882
--- /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 0000000..4a0bb14
--- /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 0000000..11e39b3
--- /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 0000000..ac74ca5
--- /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 0000000..9f249de
--- /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 0000000..8ca5d52
--- /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 0000000..2dc5db8
--- /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 0000000..0ad4706
--- /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 0000000..0e16bda
--- /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 0000000..2c665b7
--- /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 0000000..a40a31b
--- /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 0000000..2a72365
--- /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 0000000..b943d8b
--- /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 0000000..647a664
--- /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 0000000..20c530d
--- /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 0000000..c83a0f0
--- /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 0000000..603049f
--- /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 0000000..d888c69
--- /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 0000000..f1a40a2
--- /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 0000000..8ae7c26
--- /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 0000000..865b5c6
--- /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 0000000..bf98d15
--- /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 0000000..b90902b
--- /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 0000000..ef727d6
--- /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 0000000..642864c
--- /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 0000000..c6ebbd1
--- /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 0000000..2fc206c
--- /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 0000000..6b723ab
--- /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 0000000..9a94672
--- /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 0000000..fce6aac
--- /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 0000000..69144c0
--- /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 0000000..2e05cb6
--- /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 0000000..e823f5d
--- /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 0000000..3b082c8
--- /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 0000000..a5feee9
--- /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 0000000..abd93b5
--- /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 0000000..60ac075
--- /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 0000000..5e65a49
--- /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 0000000..2c4d744
--- /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 0000000..b3c2911
--- /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 0000000..17fd063
--- /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 0000000..1e38e9f
--- /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 0000000..788b6c8
--- /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 0000000..a0fb8d3
--- /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 0000000..c799076
--- /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 0000000..caa2f64
--- /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 0000000..314538f
--- /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 0000000..71c7633
--- /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 0000000..3e9a8ef
--- /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 0000000..9c0adbc
--- /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);
+}



More information about the vc mailing list