OSDN Git Service

PR c++/51318
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / go.test / test / parentype.go
1 // $G $D/$F.go
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 f(interface{})
10 func g() {}
11 func main() {
12         f(map[string]string{"a":"b","c":"d"})
13         f([...]int{1,2,3})
14         f(map[string]func(){"a":g,"c":g})
15         f(make(chan(<-chan int)))
16         f(make(chan<-(chan int)))
17 }