diff options
Diffstat (limited to 'tests/accept/run/tfloat3.nim')
-rw-r--r-- | tests/accept/run/tfloat3.nim | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/accept/run/tfloat3.nim b/tests/accept/run/tfloat3.nim deleted file mode 100644 index 72acce958..000000000 --- a/tests/accept/run/tfloat3.nim +++ /dev/null @@ -1,18 +0,0 @@ - -import math, strutils - -{.emit: """ -void printFloats(void) { - double y = 1.234567890123456789; - - printf("C double: %.10f, %.10f ", exp(y), cos(y)); -} -""".} - -proc c_printf(frmt: CString) {.importc: "printf", header: "<stdio.h>", varargs.} -proc printFloats {.importc, nodecl.} - -var x: float = 1.234567890123456789 -c_printf("Nimrod %.10f, %.10f ", exp(x), cos(x)) -printFloats() - |