diff options
Diffstat (limited to '')
-rw-r--r-- | test/fixedbugs/gcc61254.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/fixedbugs/gcc61254.go b/test/fixedbugs/gcc61254.go new file mode 100644 index 0000000..82e666e --- /dev/null +++ b/test/fixedbugs/gcc61254.go @@ -0,0 +1,13 @@ +// compile + +// Copyright 2014 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// PR61254: gccgo failed to compile a slice expression with missing indices. + +package main + +func main() { + [][]int{}[:][0][0]++ +} |