diff options
author | Sven Gothel <[email protected]> | 2023-06-18 04:43:04 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-06-18 04:43:04 +0200 |
commit | 302c487d047c98af4c57af4c5cb82ea883f3144a (patch) | |
tree | d0ebab0a363375dbc9f56646293c73ae0327474f /src/junit/com/jogamp/gluegen/test | |
parent | 7825c4c053e0755e5dc0aa20127914887efa75e4 (diff) | |
parent | 8d3e22e8c54bca8e84ea94566f47b8f24cc24b60 (diff) |
Merge remote-tracking branch 'Mathieu_Fery/feature/support_of_bitwise_not'
Diffstat (limited to 'src/junit/com/jogamp/gluegen/test')
-rw-r--r-- | src/junit/com/jogamp/gluegen/test/junit/generation/BaseClass.java | 9 | ||||
-rw-r--r-- | src/junit/com/jogamp/gluegen/test/junit/generation/test1.h | 8 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/junit/com/jogamp/gluegen/test/junit/generation/BaseClass.java b/src/junit/com/jogamp/gluegen/test/junit/generation/BaseClass.java index 071d2d7..7ec6237 100644 --- a/src/junit/com/jogamp/gluegen/test/junit/generation/BaseClass.java +++ b/src/junit/com/jogamp/gluegen/test/junit/generation/BaseClass.java @@ -246,6 +246,15 @@ public class BaseClass extends SingletonJunitCase { Assert.assertEquals( 9, Bindingtest1.NUMBER_NINE); Assert.assertEquals( 10, Bindingtest1.NUMBER_TEN); + // Bitwise not Expression + Assert.assertEquals(~ Bindingtest1.NUMBER_ONE, Bindingtest1.BITWISE_NOT_OF_ONE); + Assert.assertEquals(~ Bindingtest1.NUMBER_TWO, Bindingtest1.BITWISE_NOT_OF_TWO); + Assert.assertEquals(~ Bindingtest1.NUMBER_FOUR, Bindingtest1.BITWISE_NOT_OF_FOUR); + Assert.assertEquals(~ Bindingtest1.NUMBER_FIVE, Bindingtest1.BITWISE_NOT_OF_FIVE); + Assert.assertEquals(~ Bindingtest1.NUMBER_EIGHT, Bindingtest1.BITWISE_NOT_OF_EIGHT); + Assert.assertEquals(~ Bindingtest1.NUMBER_NINE, Bindingtest1.BITWISE_NOT_OF_NINE); + Assert.assertEquals(~ Bindingtest1.NUMBER_TEN, Bindingtest1.BITWISE_NOT_OF_TEN); + // Enum Constant Expressions! Assert.assertEquals( 1, Bindingtest1.ENUM_NUM_ONE); Assert.assertEquals( 2, Bindingtest1.ENUM_NUM_TWO); diff --git a/src/junit/com/jogamp/gluegen/test/junit/generation/test1.h b/src/junit/com/jogamp/gluegen/test/junit/generation/test1.h index 89848d7..6e1f8db 100644 --- a/src/junit/com/jogamp/gluegen/test/junit/generation/test1.h +++ b/src/junit/com/jogamp/gluegen/test/junit/generation/test1.h @@ -114,6 +114,14 @@ enum CL_INT { ENUM_I0=10, ENUM_I1, ENUM_I2=+12U, ENUM_I3=0x0d, ENUM_I4=-14, ENUM #define NUMBER_NINE ( 2 * 2 + ( 1 << 2 ) + 1 ) #define NUMBER_TEN ( NUMBER_EIGHT | NUMBER_TWO ) +#define BITWISE_NOT_OF_ONE ~ NUMBER_ONE +#define BITWISE_NOT_OF_TWO ~ NUMBER_TWO +#define BITWISE_NOT_OF_FOUR ~ NUMBER_FOUR +#define BITWISE_NOT_OF_FIVE ~ NUMBER_FIVE +#define BITWISE_NOT_OF_EIGHT ~ NUMBER_EIGHT +#define BITWISE_NOT_OF_NINE ~ NUMBER_NINE +#define BITWISE_NOT_OF_TEN ~ NUMBER_TEN + enum NumberOps { ENUM_NUM_ONE = CONSTANT_ONE, ENUM_NUM_TWO = 1+1, ENUM_NUM_THREE, |