github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/tools/oracle/testdata/src/main/callgraph2.go (about)

     1  package main
     2  
     3  // Tests of call-graph queries.
     4  // See go.tools/oracle/oracle_test.go for explanation.
     5  // See callgraph2.golden for expected query results.
     6  
     7  // (Regression test for pointer analysis: programs that use reflection
     8  // create some cgnodes before the root of the callgraph.)
     9  import _ "reflect"
    10  
    11  func f() {}
    12  func main() {
    13  	f()
    14  }
    15  
    16  // @callgraph callgraph "^"