aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nimterop.nimble2
-rw-r--r--tests/tmath.nim9
2 files changed, 7 insertions, 4 deletions
diff --git a/nimterop.nimble b/nimterop.nimble
index 58a99b0..cd36e1c 100644
--- a/nimterop.nimble
+++ b/nimterop.nimble
@@ -54,6 +54,8 @@ task test, "Test":
# Platform specific tests
when defined(Windows):
execTest "tests/tmath.nim"
+ execTest "tests/tmath.nim", "-d:FLAGS=\"-f:ast2\""
+ execTest "tests/tmath.nim", "-d:FLAGS=\"-f:ast2 -H\""
if defined(OSX) or defined(Windows) or not existsEnv("TRAVIS"):
execTest "tests/tsoloud.nim"
execTest "tests/tsoloud.nim", "-d:FLAGS=\"-f:ast2\""
diff --git a/tests/tmath.nim b/tests/tmath.nim
index 1f804ab..5d84700 100644
--- a/tests/tmath.nim
+++ b/tests/tmath.nim
@@ -1,10 +1,11 @@
import unittest
import nimterop/cimport
-type
- locale_t = object
- mingw_ldbl_type_t = object
- mingw_dbl_type_t = object
+cOverride:
+ type
+ locale_t = object
+ mingw_ldbl_type_t = object
+ mingw_dbl_type_t = object
when defined(windows):
cOverride: