some deletions
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.0.1-2020.1.5 / callgraph / rta / testdata / func.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/callgraph/rta/testdata/func.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/callgraph/rta/testdata/func.go
deleted file mode 100644 (file)
index 968c73d..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-//+build ignore
-
-package main
-
-// Test of dynamic function calls.
-// No interfaces, so no runtime/reflect types.
-
-func A1() {
-       A2(0)
-}
-
-func A2(int) {} // not address-taken
-
-func B() {} // unreachable
-
-var (
-       C = func(int) {}
-       D = func(int) {}
-)
-
-func main() {
-       A1()
-
-       pfn := C
-       pfn(0) // calls C and D but not A2 (same sig but not address-taken)
-}
-
-// WANT:
-// Dynamic calls
-//   main --> init$1
-//   main --> init$2
-// Reachable functions
-//   A1
-//   A2
-//   init$1
-//   init$2
-// Reflect types