summary refs log tree commit diff stats
path: root/compiler/c2nim/tests/systest2.c
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-04-12 01:13:42 +0200
committerAraq <rumpf_a@web.de>2011-04-12 01:13:42 +0200
commitcd292568d775d55d9abb51e962882ecda12c03a9 (patch)
tree85451f0e1f17dc0463350915f12bdd0a82a73455 /compiler/c2nim/tests/systest2.c
parent46c41e43690cba9bc1caff6a994bb6915df8a1b7 (diff)
downloadNim-cd292568d775d55d9abb51e962882ecda12c03a9.tar.gz
big repo cleanup
Diffstat (limited to 'compiler/c2nim/tests/systest2.c')
-rwxr-xr-xcompiler/c2nim/tests/systest2.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/compiler/c2nim/tests/systest2.c b/compiler/c2nim/tests/systest2.c
new file mode 100755
index 000000000..bf3027cfc
--- /dev/null
+++ b/compiler/c2nim/tests/systest2.c
@@ -0,0 +1,17 @@
+#ifdef C2NIM
+#  header "iup.h"
+#  cdecl
+#  mangle "'GTK_'{.*}" "TGtk$1"
+#  mangle "'PGTK_'{.*}" "PGtk$1"
+#endif
+
+typedef struct stupidTAG {
+  mytype a, b;
+} GTK_MyStruct, *PGTK_MyStruct;
+
+typedef struct  {
+  mytype a, b;
+} GTK_MyStruct, *PGTK_MyStruct;
+
+int IupConvertXYToPos(PIhandle ih, int x, int y);
+