summaryrefslogtreecommitdiff
path: root/tolua/src/tests/tinheritance.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tolua/src/tests/tinheritance.cpp')
-rwxr-xr-xtolua/src/tests/tinheritance.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/tolua/src/tests/tinheritance.cpp b/tolua/src/tests/tinheritance.cpp
new file mode 100755
index 0000000..4396a7e
--- /dev/null
+++ b/tolua/src/tests/tinheritance.cpp
@@ -0,0 +1,21 @@
+extern "C" {
+#include "lua.h"
+#include "lualib.h"
+#include "lauxlib.h"
+}
+
+int main ()
+{
+ int tolua_tinheritance_open (lua_State*);
+
+ lua_State* L = luaL_newstate();
+ luaL_openlibs(L);
+ tolua_tinheritance_open(L);
+
+ luaL_dofile(L,"tinheritance.lua");
+
+ lua_close(L);
+
+ return 0;
+}
+