aboutsummaryrefslogtreecommitdiffstats
path: root/test/double_size.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/double_size.cpp')
-rw-r--r--test/double_size.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/double_size.cpp b/test/double_size.cpp
new file mode 100644
index 00000000..25c7cef7
--- /dev/null
+++ b/test/double_size.cpp
@@ -0,0 +1,11 @@
+#include <iostream>
+
+int main()
+{
+ std::cout<<"Size of double: "<<sizeof(double)<<'\n';
+ std::cout<<"Size of long double: "<<sizeof(long double)<<'\n';
+
+ if(sizeof(long double) > 8)
+ return 0;
+ return 1;
+}