1
0
mirror of https://github.com/golang/go synced 2024-11-08 05:46:12 -07:00
go/misc/cgo/testshared/src/exe/exe.go

19 lines
386 B
Go
Raw Normal View History

package main
import (
"depBase"
"os"
"reflect"
"runtime"
)
func main() {
defer depBase.ImplementedInAsm()
// This code below causes various go.itab.* symbols to be generated in
// the executable. Similar code in ../depBase/dep.go results in
// exercising https://github.com/golang/go/issues/17594
reflect.TypeOf(os.Stdout).Elem()
runtime.GC()
depBase.V = depBase.F() + 1
}