]> Cypherpunks.ru repositories - gostls13.git/blob - test/nil.go
test: remove semiocolons.
[gostls13.git] / test / nil.go
1 // $G $F.go && $L $F.$A && ./$A.out
2
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
7 package main
8
9 type T struct {
10         i int
11 }
12
13 type IN interface {
14 }
15
16 func main() {
17         var i *int
18         var f *float
19         var s *string
20         var m map[float] *int
21         var c chan int
22         var t *T
23         var in IN
24         var ta []IN
25
26         i = nil
27         f = nil
28         s = nil
29         m = nil
30         c = nil
31         t = nil
32         i = nil
33         ta = make([]IN, 1)
34         ta[0] = nil
35
36         _, _, _, _, _, _, _, _ = i, f, s, m, c, t, in, ta
37 }