Commit f6f83e49 authored by Ian Lance Taylor's avatar Ian Lance Taylor

test: add test which crashed gccgo compiler

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5605046
parent 42526e21
// $G $D/$F.go
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Crashed gccgo.
package p
type S struct {
f interface{}
}
func F(p *S) bool {
v := p.f
switch a := v.(type) {
case nil:
_ = a
return true
}
return true
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment