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 (_).
49 func g() (float64, float64) {
54 func h(_
int, _
float64) {
66 panic("init did not run")
95 for _
, s
:= range ints
{
103 for s
:= range ints
{
110 // exp/ssa/interp doesn't yet skip blank fields in struct
111 // equivalence. It also cannot support unsafe.Pointer.
112 if os
.Getenv("GOSSAINTERP") == "" {
113 type T1
struct{ x
, y
, z
int }
114 t1
:= *(*T
)(unsafe
.Pointer(&T1
{1, 2, 3}))
115 t2
:= *(*T
)(unsafe
.Pointer(&T1
{4, 5, 6}))
132 func (_ TI
) M(x
int, y
int) {
134 println("invalid M call:", x
, y
)
139 var fp
= func(_
int, y
int) {}
147 println("invalid fp1 call:", x
, y
)