Source file test/fixedbugs/issue41680.go

     1  // compile
     2  
     3  // Copyright 2020 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  package p
     8  
     9  func F(s string) bool {
    10  	const m = 16
    11  	const n = 1e5
    12  	_ = make([]int, n)
    13  	return len(s) < n*m
    14  }
    15  
    16  func G() {
    17  	const n = 1e5
    18  	_ = make([]int, n)
    19  	f := n
    20  	var _ float64 = f
    21  }
    22  

View as plain text