aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/include/test.h1
-rw-r--r--tests/tnimterop_c.nim2
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/include/test.h b/tests/include/test.h
index 8138e54..2e4cf08 100644
--- a/tests/include/test.h
+++ b/tests/include/test.h
@@ -27,6 +27,7 @@ extern "C" {
typedef uint8_t PRIMTYPE;
typedef PRIMTYPE CUSTTYPE;
+typedef CUSTTYPE _CCUSTTYPE_;
struct STRUCT0;
diff --git a/tests/tnimterop_c.nim b/tests/tnimterop_c.nim
index 01fa70b..0eafa11 100644
--- a/tests/tnimterop_c.nim
+++ b/tests/tnimterop_c.nim
@@ -40,6 +40,7 @@ block:
var
pt: PRIMTYPE
ct: CUSTTYPE
+ cct: CCUSTTYPE
s0: STRUCT0
s1: STRUCT1
@@ -64,6 +65,7 @@ var
pt = 3
ct = 4
+cct = 5
s1.field1 = 5
s2.field1 = 6