Source file src/cmd/compile/internal/ssa/testdata/i81705a.go

     1  // Copyright 2026 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package main
     6  
     7  func f(i int) bool { return i > 1 }
     8  
     9  func g() {}
    10  
    11  func main() {
    12  	switch { // want a statement here, before the cases
    13  	case f(1):
    14  		g()
    15  	case f(2):
    16  		g()
    17  	}
    18  }
    19  

View as plain text