xref: /csrg-svn/old/dbx/tests/cc/float.c (revision 44071)
1*44071Sbostic /*
2*44071Sbostic  * Test of floats and doubles.
3*44071Sbostic  */
4*44071Sbostic 
f(x)5*44071Sbostic double f(x)
6*44071Sbostic double x;
7*44071Sbostic {
8*44071Sbostic     return 3.14*x;
9*44071Sbostic }
10*44071Sbostic 
main()11*44071Sbostic main()
12*44071Sbostic {
13*44071Sbostic     double x;
14*44071Sbostic     float y;
15*44071Sbostic 
16*44071Sbostic     y = 3.0;
17*44071Sbostic     x = f(y);
18*44071Sbostic     return 0;
19*44071Sbostic }
20