aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/runtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/runtime.c')
-rw-r--r--src/pkg/runtime/runtime.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pkg/runtime/runtime.c b/src/pkg/runtime/runtime.c
index 50a94ec921..6f359e1846 100644
--- a/src/pkg/runtime/runtime.c
+++ b/src/pkg/runtime/runtime.c
@@ -46,6 +46,12 @@ sys·throwindex(void)
}
void
+sys·throwslice(void)
+{
+ throw("slice out of range");
+}
+
+void
sys·throwreturn(void)
{
throw("no return at end of a typed function");