introduce TDF_compare_debug, omit OBJ_TYPE_REF casts with it
[official-gcc.git] / libgo / misc / cgo / test / issue1222.go
blob4868da8e18508a4a472357eea0d65ee056cb2b42
1 // Copyright 2010 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.
5 // This file contains test cases for cgo.
7 package cgotest
9 /*
10 // issue 1222
11 typedef union {
12 long align;
13 } xxpthread_mutex_t;
15 struct ibv_async_event {
16 union {
17 int x;
18 } element;
21 struct ibv_context {
22 xxpthread_mutex_t mutex;
25 import "C"
27 type AsyncEvent struct {
28 event C.struct_ibv_async_event