diff options
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 |
