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 (_).
46 func g() (float64, float64) {
51 func h(_ int, _ float64) {
63 panic("init did not run")
92 for _, s := range ints {
100 for s := range ints {
107 type T1 struct{ x, y, z int }
108 t1 := *(*T)(unsafe.Pointer(&T1{1, 2, 3}))
109 t2 := *(*T)(unsafe.Pointer(&T1{4, 5, 6}))
125 func (_ TI) M(x int, y int) {
127 println("invalid M call:", x, y)
132 var fp = func(_ int, y int) {}
140 println("invalid fp1 call:", x, y)