diff options
-rw-r--r-- | _float.d (renamed from float.d) | 0 | ||||
-rw-r--r-- | _math.d | 1 | ||||
-rw-r--r-- | _math.h | 3 | ||||
-rw-r--r-- | _stdalign.d | 2 | ||||
-rw-r--r-- | _stdalign.h | 6 | ||||
-rw-r--r-- | _stdnoreturn.d | 1 | ||||
-rw-r--r-- | _stdnoreturn.h | 3 | ||||
-rw-r--r-- | math.c | 2 | ||||
-rw-r--r-- | stdalign.c | 1 | ||||
-rw-r--r-- | stdnoreturn.c | 7 |
10 files changed, 19 insertions, 7 deletions
@@ -0,0 +1 @@ +HUGE_VAL @@ -0,0 +1,3 @@ +#ifndef HUGE_VAL +#error HUGE_VAL not defined +#endif diff --git a/_stdalign.d b/_stdalign.d new file mode 100644 index 0000000..0f2a6c7 --- /dev/null +++ b/_stdalign.d @@ -0,0 +1,2 @@ +alignas +alignof diff --git a/_stdalign.h b/_stdalign.h new file mode 100644 index 0000000..58287dd --- /dev/null +++ b/_stdalign.h @@ -0,0 +1,6 @@ +#ifndef alignas +#error alignas not defined +#endif +#ifndef alignof +#error alignof not defined +#endif diff --git a/_stdnoreturn.d b/_stdnoreturn.d new file mode 100644 index 0000000..b05ce94 --- /dev/null +++ b/_stdnoreturn.d @@ -0,0 +1 @@ +noreturn diff --git a/_stdnoreturn.h b/_stdnoreturn.h new file mode 100644 index 0000000..b415a00 --- /dev/null +++ b/_stdnoreturn.h @@ -0,0 +1,3 @@ +#ifndef noreturn +#error noreturn not defined +#endif @@ -1,4 +1,5 @@ #include <math.h> +#include "_math.h" #include "test.h" void test_math_h(void) @@ -15,7 +16,6 @@ void test_math_h(void) testing_header("math.h"); - test_defined(HUGE_VAL); test_double(acos(1), 0); test_double(asin(1), 0); test_double(atan(1), 0); @@ -1,5 +1,6 @@ #if defined __STDC_VERSION__ && 201112L <= __STDC_VERSION__ #include <stdalign.h> +#include "_stdalign.h" #include "test.h" void test_stdalign_h(void) diff --git a/stdnoreturn.c b/stdnoreturn.c index 1b73017..44cd2f1 100644 --- a/stdnoreturn.c +++ b/stdnoreturn.c @@ -2,14 +2,9 @@ #include <stdnoreturn.h> #include "test.h" -noreturn void foo(void) -{ - for (;;); -} - void test_stdnoreturn_h(void) { - testing_header(".h"); + testing_header("stdnoreturn.h"); /* tested by the fact that this compiles */ |