blob: 9d58ed1efd543a65985642ab1d0db0dc3a8ff9b7 [file] [log] [blame]
package main
// Tests of call-graph queries, -format=json.
// See go.tools/guru/guru_test.go for explanation.
// See calls-json.golden for expected query results.
func call(f func()) {
f() // @callees @callees-f "f"
}
func main() {
call(func() {
// @callers callers-main.anon "^"
// @callstack callstack-main.anon "^"
})
}