mirror of
https://github.com/burrowers/garble.git
synced 2025-12-24 12:58:05 +08:00
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.
30 lines
454 B
Plaintext
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)
|
|
}
|