File tree Expand file tree Collapse file tree
main/scala/viper/silver/parser
test/resources/all/issues/silver Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -751,7 +751,7 @@ class FastParser {
751751 }
752752
753753 def stmt (allowDefine : Boolean = true )(implicit ctx : P [_]) : P [PStmt ] = P (ParserExtension .newStmtAtStart(ctx) | annotatedStmt |
754- stmtReservedKw(allowDefine) | stmtBlock() |
754+ stmtReservedKw(allowDefine) | stmtBlock(allowDefine ) |
755755 assign | ParserExtension .newStmtAtEnd(ctx))
756756
757757 def annotatedStmt (implicit ctx : P [_]): P [PStmt ] = P ((annotation ~ stmt()) map (PAnnotatedStmt .apply _).tupled).pos
Original file line number Diff line number Diff line change 1+ // Any copyright is dedicated to the Public Domain.
2+ // http://creativecommons.org/publicdomain/zero/1.0/
3+
4+ define outer_macro () {
5+ //:: ExpectedOutput(parser.error)
6+ { define inner_macro 42 }
7+ }
8+
9+ method test()
10+ {
11+ outer_macro()
12+ }
You can’t perform that action at this time.
0 commit comments