1// compile 2 3// Copyright 2020 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. 6 7// Gccgo mishandles a couple of alias cases. 8 9package p 10 11type S struct{} 12 13func (*S) M() {} 14 15type I interface { 16 M() 17} 18 19type A = *S 20 21var V1 I 22var _ = V1.(*S) 23var _ = V1.(A) 24 25func F() { 26 var v I 27 v = (*S)(nil) 28 v = A(nil) 29 _ = v 30} 31