github.com/jd-ly/tools@v0.5.7/go/ssa/interp/testdata/reflect.go (about)

     1  package main
     2  
     3  import "reflect"
     4  
     5  func main() {
     6  	// Regression test for issue 9462.
     7  	got := reflect.SliceOf(reflect.TypeOf(byte(0))).String()
     8  	if got != "[]uint8" && got != "[]byte" { // result varies by toolchain
     9  		println("BUG: " + got)
    10  	}
    11  }