summaryrefslogtreecommitdiff
path: root/tests/ldbl.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ldbl.c')
-rw-r--r--tests/ldbl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ldbl.c b/tests/ldbl.c
new file mode 100644
index 0000000..f3d8cae
--- /dev/null
+++ b/tests/ldbl.c
@@ -0,0 +1,9 @@
+// #include <float.h>
+int main (void) {
+ typedef int check[sizeof (long double) == sizeof (double)
+ // && LDBL_MANT_DIG == DBL_MANT_DIG
+ // && LDBL_MAX_EXP == DBL_MAX_EXP
+ // && LDBL_MIN_EXP == DBL_MIN_EXP
+ ? 1 : -1];
+ return 0;
+}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback