diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2019-06-09 15:58:01 -0500 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2019-06-09 15:58:01 -0500 |
| commit | 68ab2dbec18d9edc3392bdb56f818db6830fb52c (patch) | |
| tree | ad9c1b6ce5ac0226c6697d07db187436a3a4bf16 /tests | |
| parent | 9387de8638d7805130c2c9dc53e83541eb399f6b (diff) | |
| download | nimterop-68ab2dbec18d9edc3392bdb56f818db6830fb52c.tar.gz nimterop-68ab2dbec18d9edc3392bdb56f818db6830fb52c.zip | |
Bitfield support, space after comments
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/include/test.h | 1 | ||||
| -rw-r--r-- | tests/tnimterop_c.nim | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/include/test.h b/tests/include/test.h index 9a28dc0..91bfd75 100644 --- a/tests/include/test.h +++ b/tests/include/test.h @@ -88,6 +88,7 @@ typedef struct { enum ENUM field3[TEST_INT]; int *field4[TEST_INT]; ENUM4 *field5[TEST_INT+TEST_INT]; + int field6 : 1; } STRUCT4; typedef struct struct5 { diff --git a/tests/tnimterop_c.nim b/tests/tnimterop_c.nim index ddfa43e..9f37141 100644 --- a/tests/tnimterop_c.nim +++ b/tests/tnimterop_c.nim @@ -78,6 +78,10 @@ when defined(cpp): else: s4.field3[3] = enum1 +s4.field6 = 1 +s4.field6 += 1 +check s4.field6 == 0 + s5.tci = test_call_int s5.tcp = test_call_param s5.tcp8 = test_call_param8 |
