aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-07-02 21:49:59 -0700
committerMichael Forney <mforney@mforney.org>2019-07-02 21:53:01 -0700
commit571613ee81cdf8adc002a9aa15a35dbfd0ae3ac8 (patch)
tree04d9133675d35ec87264813d47eae2be172eec98
parent04841684cec716bc055e140c691a3178930437a7 (diff)
downloadcproc-571613ee81cdf8adc002a9aa15a35dbfd0ae3ac8.tar.xz
stmt: Add specific error message for missing inline asm
-rw-r--r--stmt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/stmt.c b/stmt.c
index 8d45e3c..f7dd0cd 100644
--- a/stmt.c
+++ b/stmt.c
@@ -280,5 +280,8 @@ stmt(struct func *f, struct scope *s)
funcret(f, v);
expect(TSEMICOLON, "after 'return' statement");
break;
+
+ case T__ASM__:
+ error(&tok.loc, "inline assembly is not yet supported");
}
}