From 31ed046e3b1d472c70959636114c737345197a44 Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Tue, 7 Apr 2020 17:54:17 -0500 Subject: ast2 tmath tests --- nimterop.nimble | 2 ++ tests/tmath.nim | 9 +++++---- 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: -- cgit v1.2.3