Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201028153306-37f0764111ff / cmd / guru / testdata / src / softerrs / main.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201028153306-37f0764111ff/cmd/guru/testdata/src/softerrs/main.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201028153306-37f0764111ff/cmd/guru/testdata/src/softerrs/main.go
new file mode 100644 (file)
index 0000000..f7254b8
--- /dev/null
@@ -0,0 +1,15 @@
+package main
+
+// Tests of various queries on a program containing only "soft" errors.
+// See go.tools/guru/guru_test.go for explanation.
+// See main.golden for expected query results.
+
+func _() {
+       var i int // "unused var" is a soft error
+}
+
+func f() {} // @callers softerrs-callers-f "f"
+
+func main() {
+       f() // @describe softerrs-describe-f "f"
+}