1 // $G $F.go && $L $F.$A && ./$A.out
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.
9 var a, b, c, d, e, f, g, h, i int
12 println(a, b, c, d, e, f, g, h, i)
15 func testit(permuteok bool) bool {
16 if a+b+c+d+e+f+g+h+i != 45 {
17 print("sum does not add to 45\n")
33 func swap(x, y int) (u, v int) {
52 for z := 0; z < 100; z++ {
53 a, b, c, d, e, f, g, h, i = b, c, d, a, i, e, f, g, h
55 if !testit(z%20 != 19) {
56 print("on ", z, "th iteration\n")
73 a, b = swap(swap(a, b))