Test case for enum identifer or'd
This commit is contained in:
parent
d21ec6287b
commit
62f5dc121b
2 changed files with 8 additions and 3 deletions
|
|
@ -49,7 +49,9 @@ enum ENUM {
|
|||
typedef enum {
|
||||
enum4 = 3,
|
||||
enum5,
|
||||
enum6
|
||||
enum6,
|
||||
enum6a = enum5 & enum6,
|
||||
enum6b = enum5 | enum6
|
||||
} ENUM2;
|
||||
|
||||
enum {
|
||||
|
|
@ -149,4 +151,4 @@ typedef struct dstruct2 {
|
|||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -116,6 +116,9 @@ else:
|
|||
|
||||
check test_call9() == nil
|
||||
|
||||
check enum6a == 4
|
||||
check enum6b == 5
|
||||
|
||||
check e3 == enum7
|
||||
check e4 == enum11
|
||||
|
||||
|
|
@ -160,4 +163,4 @@ di = addr iptr
|
|||
ds.field1 = di
|
||||
ds2.field1 = addr cstr
|
||||
ds2.tcv = test_call10
|
||||
check ds2.tcv(di) == nil
|
||||
check ds2.tcv(di) == nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue