diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2019-12-23 16:50:39 -0600 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2019-12-23 16:50:39 -0600 |
| commit | 972297c50957000c693a40ed9f0846ee3f79ca81 (patch) | |
| tree | 7fef7697b1646a708e3fddbc25826a629105426b | |
| parent | bab37e95275f8ea5702d46139cf33e6149dab860 (diff) | |
| download | nimterop-issue80.tar.gz nimterop-issue80.zip | |
Restrict to OSXissue80
| -rw-r--r-- | tests/tnimterop_c.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tnimterop_c.nim b/tests/tnimterop_c.nim index 319c766..c577c5d 100644 --- a/tests/tnimterop_c.nim +++ b/tests/tnimterop_c.nim @@ -96,7 +96,7 @@ s3.field1 = 7 s4.field2[2] = 5 # note: simplify with `defined(c)` for nim >= 0.19.9 -when defined(cpp): +when defined(cpp) and defined(OSX): discard else: s4.field3[3] = enum1 @@ -125,7 +125,7 @@ check test_call_int() == 5 check test_call_param(5).field1 == 5 check test_call_param2(5, s2).field1 == 11 check test_call_param3(5, s1).field1 == 10 -when defined(cpp): +when defined(cpp) and defined(OSX): # error: assigning to 'enum ENUM' from incompatible type 'NI' (aka 'long long') discard else: @@ -135,7 +135,7 @@ check test_call_param6(u2) == 'c' u.field1 = 4 check test_call_param7(u) == 4 -when defined(cpp): +when defined(cpp) and defined(OSX): # note: candidate function not viable: no known conversion from 'NI *' (aka 'long long *') to 'int *' for 1st argument # check test_call_param8(cast[ptr int](addr i)) == 25.0 discard |
