summaryrefslogtreecommitdiff
path: root/gcc/testsuite/go.go-torture/execute/array-1.go
blob: 7b34eca192231f528a3c19b2deecadce63c2bd0d (plain)
1
2
3
4
5
6
7
8
9
10
package main
var a [2]int;
func fn() {
  a[0] = 1;
  a[1] = 1;
}
func main() {
  fn();
  if a[0] != a[1] { panic(0) }
}