diff options
author | Olly Betts <olly@survex.com> | 2021-09-29 17:51:02 +1300 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2022-01-25 14:09:41 +1300 |
commit | f2de21eb8382f755299bea04b18e2fd8648fddc1 (patch) | |
tree | 7e40df0bf10c909d0c31e3addcb1087c89fb4769 /Examples/test-suite/csharp/preproc_constants_c_runme.cs | |
parent | 017900d57edd5cc516aedb56d3bff834aeee2eca (diff) | |
download | swig-f2de21eb8382f755299bea04b18e2fd8648fddc1.tar.gz |
Parse common cases of `<` and `>` comparisons
Adding full support for these in expressions seems hard to do without
introducing conflicts into the parser grammar, but in fact all reported
cases have had parentheses around the comparison and we can support that
with a few restrictions on the left side of `<`.
Fixes #80 and #635. Also https://sourceforge.net/p/swig/bugs/1139/
Diffstat (limited to 'Examples/test-suite/csharp/preproc_constants_c_runme.cs')
-rw-r--r-- | Examples/test-suite/csharp/preproc_constants_c_runme.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Examples/test-suite/csharp/preproc_constants_c_runme.cs b/Examples/test-suite/csharp/preproc_constants_c_runme.cs index 5966d5266..8cdb705c9 100644 --- a/Examples/test-suite/csharp/preproc_constants_c_runme.cs +++ b/Examples/test-suite/csharp/preproc_constants_c_runme.cs @@ -51,6 +51,8 @@ public class runme { assert( typeof(int) == preproc_constants_c.EXPR_MINUS.GetType() ); assert( typeof(int) == preproc_constants_c.EXPR_LSHIFT.GetType() ); assert( typeof(int) == preproc_constants_c.EXPR_RSHIFT.GetType() ); + assert( typeof(int) == preproc_constants_c.EXPR_LT.GetType() ); + assert( typeof(int) == preproc_constants_c.EXPR_GT.GetType() ); assert( typeof(int) == preproc_constants_c.EXPR_LTE.GetType() ); assert( typeof(int) == preproc_constants_c.EXPR_GTE.GetType() ); assert( typeof(int) == preproc_constants_c.EXPR_INEQUALITY.GetType() ); |