20000317 sourceware import
This commit is contained in:
20
libgloss/testsuite/libgloss.all/float.c
Normal file
20
libgloss/testsuite/libgloss.all/float.c
Normal file
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user