blob: bb2d81cbb9abd88dd8bc2a06fdeb277e5374f654 [file] [log] [blame]
Rémy Oudompheng2ece2f52012-02-18 22:15:42 +01001// compile
Ian Lance Taylor42e9db12009-08-17 19:23:17 -07002
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
7package main
8
9type S struct {
10 p *S;
11 s []S;
12 m map[int] S;
13 c chan S;
14 i interface { f(S); };
15 f func(S) S;
16}
17
18func main() {
19 var s S;
20 s.p = &s;
21 s.s = make([]S, 1);
22 s.s[0] = s;
23 s.m[0] = s;
24 s.c <- s;
25 s.i.f(s);
26}