gcc/testsuite/gm2/builtins/run/pass/testsinl.mod
raw| 1 | IMPLEMENTATION MODULE testsinl ; |
| 2 | |
| 3 | FROM libc IMPORT printf ; |
| 4 | FROM Builtins IMPORT sinl ; |
| 5 | |
| 6 | |
| 7 | (* |
| 8 | test - |
| 9 | *) |
| 10 | |
| 11 | PROCEDURE test ; |
| 12 | VAR |
| 13 | result: LONGREAL ; |
| 14 | BEGIN |
| 15 | result := sinl (3.14) ; |
| 16 | printf ("sinl (3.14) = %lg\n", result) ; |
| 17 | END test ; |
| 18 | |
| 19 | |
| 20 | BEGIN |
| 21 | test ; |
| 22 | printf ("all tests pass\n") |
| 23 | END testsinl. |