Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.0.1-2020.1.5 / staticcheck / testdata / src / CheckExtremeComparison / CheckExtremeComparison64.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/staticcheck/testdata/src/CheckExtremeComparison/CheckExtremeComparison64.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/staticcheck/testdata/src/CheckExtremeComparison/CheckExtremeComparison64.go
new file mode 100644 (file)
index 0000000..4576407
--- /dev/null
@@ -0,0 +1,15 @@
+// +build amd64 arm64 ppc64 ppc64le mips64 mips64le mips64p32 mips64p32le sparc64
+
+package pkg
+
+import "math"
+
+func fn2() {
+       var (
+               u uint
+               i int
+       )
+       _ = u > math.MaxUint64 // want `no value of type uint is greater than math\.MaxUint64`
+       _ = i > math.MaxInt64  // want `no value of type int is greater than math\.MaxInt64`
+
+}