diff options
Diffstat (limited to 'tests/compilerapi/myscript.nim')
-rw-r--r-- | tests/compilerapi/myscript.nim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/compilerapi/myscript.nim b/tests/compilerapi/myscript.nim new file mode 100644 index 000000000..539b07de1 --- /dev/null +++ b/tests/compilerapi/myscript.nim @@ -0,0 +1,9 @@ + +import exposed + +echo "top level statements are executed!" + +proc hostProgramRunsThis*(a, b: float): float = + result = addFloats(a, b, 1.0) + +let hostProgramWantsThis* = "my secret" |