libgo: update to Go 1.11
[official-gcc.git] / libgo / misc / cgo / test / issue23720.go
blob934fff3420a2b16724736d67bada9abf7608be7a
1 // Copyright 2018 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 // Test that we can pass compatible typedefs.
6 // No runtime test; just make sure it compiles.
8 package cgotest
11 typedef int *issue23720A;
13 typedef const int *issue23720B;
15 void issue23720F(issue23720B a) {}
17 import "C"
19 func Issue23720F() {
20 var x C.issue23720A
21 C.issue23720F(x)