-
-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It's the third time I've wanted it to quickly test out standalone reproducers when people submit bugs. Fixes #661.
- Loading branch information
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
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 | ||
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.20 | ||
-- garble_main.go -- | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
"runtime" | ||
) | ||
|
||
func main() { | ||
_, file, line, _ := runtime.Caller(0) | ||
fmt.Println(file, line) | ||
} |