]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Bug on ostream with doubles.
authorheltai <heltai@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 23 Nov 2011 08:22:04 +0000 (08:22 +0000)
committerheltai <heltai@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 23 Nov 2011 08:22:04 +0000 (08:22 +0000)
git-svn-id: https://svn.dealii.org/trunk@24763 0785d39b-7218-0410-832d-ea1e28bc413d

tests/codim_one/double_bug.cc [new file with mode: 0644]
tests/codim_one/double_bug/cmp/generic [new file with mode: 0644]

diff --git a/tests/codim_one/double_bug.cc b/tests/codim_one/double_bug.cc
new file mode 100644 (file)
index 0000000..1acf364
--- /dev/null
@@ -0,0 +1,11 @@
+#include <fstream>
+#include <iostream>
+
+int main ()
+{
+    std::ofstream logfile("double_bug/output");
+
+    logfile <<  -0.00976562 << std::endl;
+
+    return 0;
+}
diff --git a/tests/codim_one/double_bug/cmp/generic b/tests/codim_one/double_bug/cmp/generic
new file mode 100644 (file)
index 0000000..737e1fa
--- /dev/null
@@ -0,0 +1 @@
+-0.00976562

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.