diff options
Diffstat (limited to 'misc/cgo/test/issue6472.go')
-rw-r--r-- | misc/cgo/test/issue6472.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/misc/cgo/test/issue6472.go b/misc/cgo/test/issue6472.go new file mode 100644 index 000000000..cd94cac37 --- /dev/null +++ b/misc/cgo/test/issue6472.go @@ -0,0 +1,22 @@ +// Copyright 2013 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package cgotest + +/* +typedef struct +{ + struct + { + int x; + } y[16]; +} z; +*/ +import "C" + +func test6472() { + // nothing to run, just make sure this compiles + s := new(C.z) + println(s.y[0].x) +} |