aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/runtime.c
diff options
context:
space:
mode:
authorKen Thompson <ken@golang.org>2009-08-28 12:37:39 -0700
committerKen Thompson <ken@golang.org>2009-08-28 12:37:39 -0700
commitbf0130cc0f19b5730f5fae0240f85583e70e1a0e (patch)
tree34f0cceeea5c8451e5b4efa377796548006abd39 /src/pkg/runtime/runtime.c
parentf59ae064ba5c4766ade933685bed983665052ab2 (diff)
downloadgo-bf0130cc0f19b5730f5fae0240f85583e70e1a0e.tar.xz
sliceslice inline
R=rsc OCL=34041 CL=34041
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");