Sign in
fuchsia
/
third_party
/
swig
/
ae709933805236a8bbf2cba82ed984d92c82ee9c
/
.
/
Examples
/
test-suite
/
go
/
return_const_value_runme.go
blob: aadb1265ecdabd9e0377b44417eb21c196b6b7e0 [
file
] [
log
] [
blame
]
package main
import "return_const_value"
func main() {
p := return_const_value.Foo_ptrGetPtr()
if p.GetVal() != 17 {
panic("Runtime test1 failed")
}
p = return_const_value.Foo_ptrGetConstPtr()
if p.GetVal() != 17 {
panic("Runtime test2 failed")
}
}