Commit 762e686d17

Andrew Kelley <superjoe30@gmail.com>
2016-05-19 03:20:15
inline assembly: allow empty output list
1 parent 39016c1
Changed files (1)
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);