Source file test/fixedbugs/issue44383.go

     1  // compile
     2  
     3  // Copyright 2021 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 44383: gofrontend internal compiler error
     8  
     9  package main
    10  
    11  func main() {
    12  	var b1, b2 byte
    13  	f := func() int {
    14  		var m map[byte]int
    15  		return m[b1/b2]
    16  	}
    17  	f()
    18  }
    19  

View as plain text