diff options
| author | Joey Yakimowich-Payne <jyapayne@gmail.com> | 2020-05-12 17:18:47 -0600 |
|---|---|---|
| committer | genotrance <dev@genotrance.com> | 2020-05-15 11:20:00 -0500 |
| commit | ed26911436a2107d287a8f1d4f4df7727d6de53d (patch) | |
| tree | 8203dd09e17a62f2c1b6764a9d8adddffd355380 | |
| parent | 1df2943cf80147a7d32f1edff5572d92162c663e (diff) | |
| download | nimterop-ed26911436a2107d287a8f1d4f4df7727d6de53d.tar.gz nimterop-ed26911436a2107d287a8f1d4f4df7727d6de53d.zip | |
Disable windows check
| -rw-r--r-- | tests/include/tast2.h | 5 | ||||
| -rw-r--r-- | tests/tast2.nim | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/tests/include/tast2.h b/tests/include/tast2.h index d39e8ea..57c060e 100644 --- a/tests/include/tast2.h +++ b/tests/include/tast2.h @@ -49,8 +49,10 @@ extern "C" { #define ALLSHL (SHL1 | SHL2 | SHL3) +// disable for windows for now +#ifndef _WIN32 // const not supported yet -static const int SOME_CONST = 8; +const int SOME_CONST = 8; struct some_struct_s { @@ -63,6 +65,7 @@ struct parent_struct_s }; typedef struct some_struct_s SOME_ARRAY[SOME_CONST]; +#endif struct A0; struct A1 {}; diff --git a/tests/tast2.nim b/tests/tast2.nim index 058ad0b..f132609 100644 --- a/tests/tast2.nim +++ b/tests/tast2.nim @@ -155,8 +155,9 @@ assert typeof(POINTERPOINTERPOINTEREXPR) is (ptr ptr ptr cint) assert ALLSHL == (SHL1 or SHL2 or SHL3) -assert not compiles(parent_struct_s().s) -assert not defined(SOME_ARRAY) +when not defined(windows): + assert not compiles(parent_struct_s().s) + assert not defined(SOME_ARRAY) assert A0 is object testFields(A0, "f1!cint") |
