]> Cypherpunks repositories - gostls13.git/commit
misc/cgo/test: test C.enum_*
authorHowJMay <vulxj0j8j8@gmail.com>
Tue, 27 Oct 2020 17:03:48 +0000 (17:03 +0000)
committerEmmanuel Odeke <emmanuel@orijtech.com>
Tue, 27 Oct 2020 18:13:59 +0000 (18:13 +0000)
commit3f6b1a0d5eea4756b905db1c2b2c03e8594850d3
tree74ba9a92f428e74769a9be47491fee6e784c4f8a
parent8fdc79e18a9704185bd6471b592db1e8004bd993
misc/cgo/test: test C.enum_*

Allocate a C enum object, and test if it can be assigned a value
successfully.

For #39537

Change-Id: I7b5482112486440b9d99f2ee4051328d87f45dca
GitHub-Last-Rev: 81890f40acc5589563ec1206fe119873fb46dc1b
GitHub-Pull-Request: golang/go#39977
Reviewed-on: https://go-review.googlesource.com/c/go/+/240697
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Emmanuel Odeke <emmanuel@orijtech.com>
misc/cgo/test/cgo_test.go
misc/cgo/test/test.go