Files
garble/testdata/script/run.txtar
Daniel Martí 30357af923 drop Go 1.22 and require Go 1.23.0 or later (#876)
This lets us start taking advantage of featurs from Go 1.23,
particularly tracking aliases in go/types and iterators.

Note that we need to add code to properly handle or skip over the new
*types.Alias type which go/types produces for Go type aliases.
Also note that we actually turn this mode off entirely for now,
due to the bug reported at https://go.dev/issue/70394.

We don't yet remove our own alias tracking code yet due to the above.
We hope to be able to remove it very soon.
2024-11-17 16:06:57 +01:00

30 lines
454 B
Plaintext

exec garble run garble_main.go
! stdout '^garble_main\.go 9$'
stdout '\.go \d'
[short] stop # no need to verify this with -short
# also with a package
exec garble run .
! stdout '^garble_main\.go 9$'
stdout '\.go \d'
go run garble_main.go
stdout 'garble_main\.go 9$'
-- go.mod --
module test/main
go 1.23
-- garble_main.go --
package main
import (
"fmt"
"runtime"
)
func main() {
_, file, line, _ := runtime.Caller(0)
fmt.Println(file, line)
}