]> Cypherpunks.ru repositories - gostls13.git/blob - misc/cgo/errors/err3.go
3680a4a4c1e5f39113bcf5cb03a0cdd25bf9150a
[gostls13.git] / misc / cgo / errors / err3.go
1 // Copyright 2014 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 main
6
7 /*
8 typedef struct foo foo_t;
9 typedef struct bar bar_t;
10
11 foo_t *foop;
12 */
13 import "C"
14
15 func main() {
16         x := (*C.bar_t)(nil)
17         C.foop = x // ERROR HERE
18 }