Closed hectorchu closed 1 week ago
If I change the #define foo 3 to #define foo (3 << 0) in cgo/testdata/const.go, the test fails with testdata/const.go:4:17: unexpected token ILLEGAL, expected end of expression.
#define foo 3
#define foo (3 << 0)
cgo/testdata/const.go
testdata/const.go:4:17: unexpected token ILLEGAL, expected end of expression
Thank you for the report! I have created a PR to fix this: https://github.com/tinygo-org/tinygo/pull/4286
This was released with v0.32.0 so now closing. Thank you everyone!
v0.32.0
If I change the
#define foo 3
to#define foo (3 << 0)
incgo/testdata/const.go
, the test fails withtestdata/const.go:4:17: unexpected token ILLEGAL, expected end of expression
.