summaryrefslogtreecommitdiffstats
path: root/llgo/third_party/gotools/go/ssa/interp/testdata/reflect.go
blob: 6aa9a67a45a07772c53a119a7fbe2a92f85fedaa (plain)
1
2
3
4
5
6
7
8
9
10
11
package main

import "reflect"

func main() {
	// Regression test for issue 9462.
	got := reflect.SliceOf(reflect.TypeOf(byte(0))).String()
	if got != "[]uint8" && got != "[]byte" { // result varies by toolchain
		println("BUG: " + got)
	}
}
OpenPOWER on IntegriCloud