diff options
author | Ian Lance Taylor <iant@golang.org> | 2020-07-10 10:51:40 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-07-10 11:30:23 -0700 |
commit | 2b6d99468d4d988fd5f5ea3e9be41a3dc95a1291 (patch) | |
tree | cb989c3bca6130c4649a3cd44041adc4f4b1c2c2 /libgo/misc | |
parent | 510125d2272175f47b26227fbe9b8c8c5abfd988 (diff) | |
download | gcc-2b6d99468d4d988fd5f5ea3e9be41a3dc95a1291.zip gcc-2b6d99468d4d988fd5f5ea3e9be41a3dc95a1291.tar.gz gcc-2b6d99468d4d988fd5f5ea3e9be41a3dc95a1291.tar.bz2 |
libgo: update to Go 1.14.4 release
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/241999
Diffstat (limited to 'libgo/misc')
-rw-r--r-- | libgo/misc/cgo/test/testx.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libgo/misc/cgo/test/testx.go b/libgo/misc/cgo/test/testx.go index 42979b5..eb9d7fa 100644 --- a/libgo/misc/cgo/test/testx.go +++ b/libgo/misc/cgo/test/testx.go @@ -124,6 +124,11 @@ typedef struct { } Issue31891B; void callIssue31891(void); + +typedef struct { + int i; +} Issue38408, *PIssue38408; + */ import "C" @@ -552,3 +557,8 @@ func useIssue31891B(c *C.Issue31891B) {} func test31891(t *testing.T) { C.callIssue31891() } + +// issue 38408 +// A typedef pointer can be used as the element type. +// No runtime test; just make sure it compiles. +var _ C.PIssue38408 = &C.Issue38408{i: 1} |