3 // Copyright 2010 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.
7 // Test compound types made of complex numbers.
17 var m map[complex128]complex128
20 // array of complex128
21 for i := 0; i < len(a); i++ {
22 a[i] = complex(float64(i), float64(-i))
28 // slice of complex128
29 s = make([]complex128, len(a))
30 for i := 0; i < len(s); i++ {
38 c = make(chan complex128)
45 // pointer of complex128
52 // field of complex128
59 m = make(map[complex128]complex128)
60 for i := 0; i < len(s); i++ {
66 vm := m[complex(-5, 5)]
72 func chantest(c chan complex128) { c <- a[5] }