Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libgloss/testsuite/libgloss.all/float.c')
-rw-r--r--libgloss/testsuite/libgloss.all/float.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/libgloss/testsuite/libgloss.all/float.c b/libgloss/testsuite/libgloss.all/float.c
new file mode 100644
index 000000000..bbe41ca7e
--- /dev/null
+++ b/libgloss/testsuite/libgloss.all/float.c
@@ -0,0 +1,20 @@
+#include <stdio.h>
+
+main()
+{
+ float a,b,c;
+
+ a = 0.11;
+ b = 3.12;
+ c = a+b;
+
+ printf ("Print float, result with 'f' = %f\n", c);
+ printf ("Print float, result with 'e' = %e\n", c);
+ printf ("Print float, result with 'E' = %E\n", c);
+ printf ("Print float, result with 'g' = %g\n", c);
+ printf ("Print float, result with 'G' = %G\n", c);
+
+ pass ("float");
+ fflush (stdout);
+}
+