Sign in
fuchsia
/
third_party
/
swig
/
1915740af8c26720f366162c768c223bddb15c7c
/
.
/
Examples
/
test-suite
/
go
/
smart_pointer_simple_runme.go
blob: 328654225e4a14b931a93abe560a209dc7301b34 [
file
] [
log
] [
blame
]
package main
import . "./smart_pointer_simple"
func main() {
f := NewFoo()
b := NewBar(f)
b.SetX(3)
if b.Getx() != 3 {
panic(0)
}
fp := b.X__deref__()
fp.SetX(4)
if fp.Getx() != 4 {
panic(0)
}
}