blob: 6d5e1127f57ea80d89ce558b043fa9fea18d150b [file] [log] [blame]
// +build ignore
package main
import "io/ioutil"
func main() {
// BEGIN OMIT
a := map[int]bool{}
a[42] = true
type T struct {
i int
s string
}
b := map[*T]bool{}
b[&T{}] = true
c := map[T]bool{}
c[T{37, "hello!"}] = true
d := map[interface{}]bool{}
d[42] = true
d[&T{}] = true
d[T{123, "four five six"}] = true
d[ioutil.Discard] = true
// END OMIT
}