github.com/amarpal/go-tools@v0.0.0-20240422043104-40142f59f616/staticcheck/sa4003/testdata/src/example.com/CheckExtremeComparison/CheckExtremeComparison64.go (about)

     1  //go:build amd64 || arm64 || ppc64 || ppc64le || mips64 || mips64le || mips64p32 || mips64p32le || sparc64
     2  // +build amd64 arm64 ppc64 ppc64le mips64 mips64le mips64p32 mips64p32le sparc64
     3  
     4  package pkg
     5  
     6  import "math"
     7  
     8  func fn2() {
     9  	var (
    10  		u uint
    11  		i int
    12  	)
    13  	_ = u > math.MaxUint64 //@ diag(`no value of type uint is greater than math.MaxUint64`)
    14  	_ = i > math.MaxInt64  //@ diag(`no value of type int is greater than math.MaxInt64`)
    15  
    16  }