Source file test/fixedbugs/issue82774.go
1 // run 2 3 // Copyright 2026 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 import "fmt" 10 11 //go:noinline 12 func f(y int8) bool { return uint64(y) < 0xFFFFFFFF } 13 14 func main() { 15 if f(-128) { 16 fmt.Println("uint64(int8(-128)) < 0xFFFFFFFF = true, want false") 17 panic("FAIL") 18 } 19 } 20