Source file test/fixedbugs/issue20923.go

     1  // compile
     2  
     3  // Copyright 2018 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  // Issue 20923: gccgo failed to compile parenthesized select case expressions.
     8  
     9  package p
    10  
    11  func F(c chan bool) {
    12  	select {
    13  	case (<-c):
    14  	case _ = (<-c):
    15  	case _, _ = (<-c):
    16  	case (c) <- true:
    17  	default:
    18  	}
    19  }
    20  

View as plain text