1 // $G $D/$F.go && $L $F.$A && ./$A.out
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.
10 type x2
struct { a
,b
,c
int; d
int; };
12 var g2
struct { a
,b
,c
int; d x2
; };
18 var s2
*struct { a
,b
,c
int; d x2
; };
36 if(s2
.d
.c
!= 23) { panic(1); }
37 if(g2
.d
.c
!= 23) { panic(2); }
52 if(x
!= 121) { panic(x
); }