summaryrefslogtreecommitdiff
path: root/tests/ldbl.c
diff options
context:
space:
mode:
authorMatthew Sotoudeh <matthew@masot.net>2023-07-25 14:58:33 -0700
committerMatthew Sotoudeh <matthew@masot.net>2023-07-25 14:58:33 -0700
commit1d943da0cf9154e7ce78ce867cdbb91531c5d78e (patch)
tree40c5c6c3ba7fafa6567aa5b5aa216caecf3935fc /tests/ldbl.c
initial dietc commit
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