Source file test/fixedbugs/issue68809.go

     1  // run
     2  
     3  // Copyright 2024 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 main
     8  
     9  func main() {
    10  	cnt := 0
    11  	for i := 1; i <= 11; i++ {
    12  		if i-6 > 4 {
    13  			cnt++
    14  		}
    15  	}
    16  	if cnt != 1 {
    17  		panic("bad")
    18  	}
    19  }
    20  

View as plain text