Add math_expression and fix ast2 tests
Update to include more expressions
This commit is contained in:
parent
305d90583e
commit
055d6bee73
6 changed files with 211 additions and 77 deletions
|
|
@ -8,6 +8,24 @@ extern "C" {
|
|||
#define D "hello"
|
||||
#define E 'c'
|
||||
|
||||
#define UEXPR (1234u << 1)
|
||||
#define ULEXPR (1234ul << 2)
|
||||
#define ULLEXPR (1234ull << 3)
|
||||
#define LEXPR (1234l << 4)
|
||||
#define LLEXPR (1234ll << 5)
|
||||
|
||||
#define SHL1 (1u << 1)
|
||||
#define SHL2 (1u << 2)
|
||||
#define SHL3 (1u << 3)
|
||||
#define COERCE 645635634896ull + -35436
|
||||
#define COERCE2 645635634896 + -35436
|
||||
#define BINEXPR ~(-(1u << !-1)) ^ (10 >> 1)
|
||||
#define BOOL true
|
||||
#define MATHEXPR (1 + 2/3*20 - 100)
|
||||
#define ANDEXPR (100 & 11000)
|
||||
|
||||
#define ALLSHL (SHL1 | SHL2 | SHL3)
|
||||
|
||||
struct A0;
|
||||
struct A1 {};
|
||||
typedef struct A2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue