Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/tools/cmd/guru: PTA ignores TestMain function #16430

Closed
dominikh opened this issue Jul 19, 2016 · 1 comment
Closed

x/tools/cmd/guru: PTA ignores TestMain function #16430

dominikh opened this issue Jul 19, 2016 · 1 comment

Comments

@dominikh
Copy link
Member

dominikh commented Jul 19, 2016

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?
    go version go1.6.2 linux/amd64
  2. What operating system and processor architecture are you using (go env)?
    GOHOSTARCH="amd64"
    GOHOSTOS="linux"
  3. What did you do?
  4. What did you expect to see?
    The guru call should find x and know that it contains an instance of t.
  5. What did you see instead?
    guru: pointer analysis did not find expression (dead code?)

It works fine for the instances of x in the other test functions.

/cc @alandonovan

@alandonovan
Copy link
Contributor

Duplicate of #9553.

@golang golang locked and limited conversation to collaborators Jul 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants