| This test exercises the crash in golang/go#66109: a dangling reference due to | |
| test variants of a command-line-arguments package. | |
| Depends on go1.22+ go list errors. | |
| -- flags -- | |
| -min_go_command=go1.22 | |
| -- go.mod -- | |
| module example.com/tools | |
| go 1.22 | |
| -- tools_test.go -- | |
| //go:build tools | |
| package tools //@diag("tools", re"No packages found") | |
| import ( | |
| _ "example.com/tools/tool" | |
| ) | |
| -- tool/tool.go -- | |
| package main | |
| func main() { | |
| } |