mirror of
https://github.com/golang/go
synced 2024-11-18 13:04:46 -07:00
go.tools/pointer: fix test of pts(os.Args) on Windows.
I have no way to test this. R=crawshaw CC=alex.brainmain, golang-dev https://golang.org/cl/17820044
This commit is contained in:
parent
766a70612a
commit
f4fca995ad
4
pointer/testdata/hello.go
vendored
4
pointer/testdata/hello.go
vendored
@ -17,7 +17,9 @@ func (s *S) String() string {
|
||||
}
|
||||
|
||||
func main() {
|
||||
print(os.Args) // @pointsto <command-line args>
|
||||
// os.Args is considered instrincally allocated,
|
||||
// but may also be set explicitly (e.g. on Windows), hence '...'.
|
||||
print(os.Args) // @pointsto <command-line args> | ...
|
||||
fmt.Println("Hello, World!", &theS)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user