OSDN Git Service

compiler: Prohibit comparisons of funcs, maps, and slices to non-nil.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / go.test / test / cmp4.go
1 // $G $D/$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 func main() {
10         var a []int
11         var ia interface{} = a
12         var m = make(map[interface{}] int)
13         m[ia] = 1
14 }