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.
7 // Test pointers and the . (selector) operator on structs.
11 type x2 struct { a,b,c int; d int; };
13 var g2 struct { a,b,c int; d x2; };
19 var s2 *struct { a,b,c int; d x2; };
37 if(s2.d.c != 23) { panic(1); }
38 if(g2.d.c != 23) { panic(2); }
53 if(x != 121) { panic(x); }