From 762e686d17b7c3a97358302940c84701650668a0 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 18 May 2016 18:20:15 -0700 Subject: inline assembly: allow empty output list --- src/parser.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/parser.cpp') diff --git a/src/parser.cpp b/src/parser.cpp index 057d162fc7..bafcbd767e 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -1017,6 +1017,12 @@ static void ast_parse_asm_output(ParseContext *pc, int *token_index, AstNode *no *token_index += 1; + Token *colon_again = &pc->tokens->at(*token_index); + if (colon_again->id == TokenIdColon) { + ast_parse_asm_input(pc, token_index, node); + return; + } + for (;;) { ast_parse_asm_output_item(pc, token_index, node); -- cgit v1.2.3