blob: 82e496a8a6ae2d03eb67ff5ecfd3991ffa62e906 [file] [log] [blame]
Russ Cox2b1c9b42012-02-16 23:49:30 -05001// run
Russ Cox22731152008-09-12 16:35:02 -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
Russ Coxbe2edb52009-03-03 08:39:12 -08009var a = []int { 1, 2, 3 }
Russ Cox22731152008-09-12 16:35:02 -070010
11func main() {
12 if len(a) != 3 { panic("array len") }
13 // print(a[0], " ", a[1], " ", a[2], "\n")
14 if a[0] != 1 || a[1] != 2 || a[2] != 3 { panic("array contents") }
15}