summaryrefslogtreecommitdiffstats
path: root/misc/cgo/testgodefs/testdata/issue37621.go
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cgo/testgodefs/testdata/issue37621.go')
-rw-r--r--misc/cgo/testgodefs/testdata/issue37621.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/misc/cgo/testgodefs/testdata/issue37621.go b/misc/cgo/testgodefs/testdata/issue37621.go
new file mode 100644
index 0000000..d5ace3f
--- /dev/null
+++ b/misc/cgo/testgodefs/testdata/issue37621.go
@@ -0,0 +1,23 @@
+// Copyright 2020 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+//
+// +build ignore
+
+package main
+
+/*
+struct tt {
+ long long a;
+ long long b;
+};
+
+struct s {
+ struct tt ts[3];
+};
+*/
+import "C"
+
+type TT C.struct_tt
+
+type S C.struct_s