commit | de4a1d01951937632098a6cda45859afa587a06f | [log] [tgz] |
---|---|---|
author | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Fri Mar 22 01:27:54 2002 +0000 |
committer | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Fri Mar 22 01:27:54 2002 +0000 |
tree | 04f2d1b07e28d933138e2e47baea5208673d4610 | |
parent | 116bcb91e717514d6b3a894493d8ae2476d2421f [diff] [blame] |
Initial revision git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/tests/floored.c b/tests/floored.c new file mode 100644 index 0000000..9cdf8a6 --- /dev/null +++ b/tests/floored.c
@@ -0,0 +1,17 @@ + +#include <math.h> +#include <stdio.h> + +int xToI ( ); + +void main ( void ) +{ + printf ( "the answer is %d\n", xToI () ); +} + + +int xToI() +{ + return (int)floor(2.90) + 1; +} +