aboutsummaryrefslogtreecommitdiff
path: root/misc/cgo/testgodefs/testdata/fieldtypedef.go
blob: 50562538b230f2601e199edee6305b9c2bdad1ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2018 The Go Authors. All rights reserve d.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
//go:build ignore
// +build ignore

package main

/*
struct S1 { int f1; };
struct S2 { struct S1 s1; };
typedef struct S1 S1Type;
typedef struct S2 S2Type;
*/
import "C"

type S1 C.S1Type
type S2 C.S2Type