summaryrefslogtreecommitdiff
path: root/tolua/src/tests/tvariable.pkg
diff options
context:
space:
mode:
Diffstat (limited to 'tolua/src/tests/tvariable.pkg')
-rw-r--r--tolua/src/tests/tvariable.pkg45
1 files changed, 45 insertions, 0 deletions
diff --git a/tolua/src/tests/tvariable.pkg b/tolua/src/tests/tvariable.pkg
new file mode 100644
index 0000000..a8a1539
--- /dev/null
+++ b/tolua/src/tests/tvariable.pkg
@@ -0,0 +1,45 @@
+$#include "tvariable.h"
+
+struct A
+{
+ int i;
+ float f;
+ double d;
+ char* s;
+ void* v;
+ char n[64];
+};
+
+struct B
+{
+ A a;
+ B* b;
+};
+
+union U
+{
+ int i;
+ float f;
+};
+
+extern int i;
+extern float f;
+extern double d;
+extern const char* s;
+extern void* v;
+extern char n[64];
+extern A a;
+extern B* b;
+extern U u;
+
+module M {
+extern int mi;
+extern float mf;
+extern double md;
+extern const char* ms;
+extern void* mv;
+extern const char mn[64];
+extern A a;
+extern A ma;
+extern B* mb;
+}