3 // Copyright 2009 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // Test behavior of the blank identifier (_).
31 _ struct{ a, b, c int }
53 func g() (float64, float64) {
58 func h(_ int, _ float64) {
70 panic("init did not run")
99 for _, s := range ints {
107 for s := range ints {
114 // go.tools/ssa/interp cannot support unsafe.Pointer.
115 if os.Getenv("GOSSAINTERP") == "" {
116 type T1 struct{ x, y, z int }
117 t1 := *(*T)(unsafe.Pointer(&T1{1, 2, 3}))
118 t2 := *(*T)(unsafe.Pointer(&T1{4, 5, 6}))
123 var u1, u2 interface{}
124 u1 = *(*U)(unsafe.Pointer(&T1{1, 2, 3}))
125 u2 = *(*U)(unsafe.Pointer(&T1{4, 5, 6}))
142 func (_ TI) M(x int, y int) {
144 println("invalid M call:", x, y)
149 var fp = func(_ int, y int) {}
157 println("invalid fp1 call:", x, y)