summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_float.d (renamed from float.d)0
-rw-r--r--_math.d1
-rw-r--r--_math.h3
-rw-r--r--_stdalign.d2
-rw-r--r--_stdalign.h6
-rw-r--r--_stdnoreturn.d1
-rw-r--r--_stdnoreturn.h3
-rw-r--r--math.c2
-rw-r--r--stdalign.c1
-rw-r--r--stdnoreturn.c7
10 files changed, 19 insertions, 7 deletions
diff --git a/float.d b/_float.d
index 12b21de..12b21de 100644
--- a/float.d
+++ b/_float.d
diff --git a/_math.d b/_math.d
new file mode 100644
index 0000000..d4ad484
--- /dev/null
+++ b/_math.d
@@ -0,0 +1 @@
+HUGE_VAL
diff --git a/_math.h b/_math.h
new file mode 100644
index 0000000..8183947
--- /dev/null
+++ b/_math.h
@@ -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
diff --git a/math.c b/math.c
index 3cf65e6..8db3d1e 100644
--- a/math.c
+++ b/math.c
@@ -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);
diff --git a/stdalign.c b/stdalign.c
index 9fd58bc..3cb7494 100644
--- a/stdalign.c
+++ b/stdalign.c
@@ -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 */