Commit 0304a485 authored by Ian Lance Taylor's avatar Ian Lance Taylor

test: add a test that caused gccgo to crash

R=golang-dev
CC=golang-dev
https://golang.org/cl/6849129
parent 253ed029
// compile
// 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.
// Caused an internal compiler error in gccgo.
package p
type C chan struct{}
func (c C) F() {
select {
case c <- struct{}{}:
default:
}
}
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