blob: 8027d941ea485dd4c7aed4371e092a38fbec3860 [file] [log] [blame]
Russ Cox2b1c9b42012-02-16 23:49:30 -05001// run
Robert Griesemerfb4c2a32008-08-29 13:47:29 -07002
3// Copyright 2009 The Go Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
7package main
8
9func main() {
10 var a [1000] int64; // this alone works
11 var b [10000] int64; // this causes a runtime crash
Russ Cox1a319892009-09-14 21:03:53 -070012 _, _ = a, b;
Robert Griesemerfb4c2a32008-08-29 13:47:29 -070013}
14
15/*
16uetli:~/Source/go1/test/bugs gri$ 6g bug092.go && 6l bug092.6 && 6.out
17Illegal instruction
18
19gri: array size matters, possibly related to stack overflow check?
20*/