diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2019-01-18 21:52:29 -0600 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2019-01-18 21:52:29 -0600 |
| commit | cd8a263f85a4ade35ec59bbe8360ece880f681ce (patch) | |
| tree | d72f103b0edae320c7782d0491078339771abee2 /tests | |
| parent | 287980c9edbb1f037b1827b62ca8cc3453b2203a (diff) | |
| download | nimterop-recurexpr.tar.gz nimterop-recurexpr.zip | |
Recursive node support, enum expressions, or/and/notrecurexpr
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/include/test.h | 6 | ||||
| -rw-r--r-- | tests/tnimterop_c.nim | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/include/test.h b/tests/include/test.h index 8a8c579..64bdbb2 100644 --- a/tests/include/test.h +++ b/tests/include/test.h @@ -60,6 +60,12 @@ typedef enum ENUM4 { enum12 } ENUM4; +enum ENUM5 { + enum13 = (1 << 2), + enum14 = ((1 << 3) | 1), + enum15 = (1 << (1 & 1)) +}; + typedef void * VOIDPTR; typedef int * INTPTR; diff --git a/tests/tnimterop_c.nim b/tests/tnimterop_c.nim index 0f53556..86526c1 100644 --- a/tests/tnimterop_c.nim +++ b/tests/tnimterop_c.nim @@ -97,6 +97,10 @@ else: check e3 == enum7 check e4 == enum11 +check enum13 == 4 +check enum14 == 9 +check enum15 == 2 + cAddStdDir() ## failing tests |
