repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
introduce TDF_compare_debug, omit OBJ_TYPE_REF casts with it
[official-gcc.git]
/
libgo
/
misc
/
cgo
/
test
/
issue6472.go
blob
d416a05e29ddb7b350cabcc59b6a08de2c0aa303
1
// Copyright 2013 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
4
5
package
cgotest
6
7
/*
8
typedef struct
9
{
10
struct
11
{
12
int x;
13
} y[16];
14
} z;
15
*/
16
import
"C"
17
18
func
test6472
() {
19
// nothing to run, just make sure this compiles
20
s
:=
new
(
C
.
z
)
21
println
(
s
.
y
[
0
].
x
)
22
}