summaryrefslogtreecommitdiff
path: root/test/luac.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/luac.lua')
-rw-r--r--test/luac.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/luac.lua b/test/luac.lua
new file mode 100644
index 00000000..f9aa9052
--- /dev/null
+++ b/test/luac.lua
@@ -0,0 +1,7 @@
+-- bare-bones luac in Lua
+-- usage: lua luac.lua file.lua
+
+assert(arg[1]~=nil,"usage: lua luac.lua file.lua")
+f=assert(io.open("luac.out","w"))
+f:write(string.dump(loadfile(arg[1])))
+io.close(f)