blob: 9e8f35dea95ed46a7a22a9213367f25b25441ec1 [file] [log] [blame]
// +build ignore
package main
// Test of runtime types (types for which descriptors are needed).
func use(interface{})
type A byte // neither A nor byte are runtime types
type B struct{ x uint } // B and uint are runtime types, but not the struct
func main() {
var x int // not a runtime type
print(x)
var y string // runtime type due to interface conversion
use(y)
use(struct{ uint64 }{}) // struct is a runtime type
use(new(B)) // *B is a runtime type
}
// WANT:
// Dynamic calls
// Reachable functions
// use
// Reflect types
// *B
// B
// string
// struct{uint64}
// uint
// uint64