blob: c396a0c4182b41853c57e1c75dfdb4ad366e77a1 [file] [log] [blame]
Russ Cox9da73612010-12-13 13:20:04 -05001// 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.
4
5// This file contains test cases for cgo.
6
Russ Coxf9ca3b52011-03-07 10:37:42 -05007package cgotest
Russ Cox9da73612010-12-13 13:20:04 -05008
9/*
10// issue 1222
11typedef union {
12 long align;
13} xxpthread_mutex_t;
14
15struct ibv_async_event {
16 union {
17 int x;
18 } element;
19};
20
21struct ibv_context {
22 xxpthread_mutex_t mutex;
23};
24*/
25import "C"
26
27type AsyncEvent struct {
28 event C.struct_ibv_async_event
29}