fixes #21632; enforce deref for wasMoved in ORC (#21647)

fixes #21632; enforce deref for `wasMoved`
This commit is contained in:
ringabout
2023-04-12 16:45:45 +08:00
committed by GitHub
parent f05387045d
commit 1ed54b7718
3 changed files with 15 additions and 6 deletions

View File

@@ -328,7 +328,16 @@ call()
doAssert program.len == program.rawMatch(grammar, 0, c)
doAssert c.ml == 1
block:
# bug #21632
let p = peg"""
atext <- \w / \d
"""
doAssert "a".match(p)
doAssert "1".match(p)
pegsTest()
static:
pegsTest()