mirror of
https://github.com/burrowers/garble.git
synced 2025-12-24 12:58:05 +08:00
don't remove "//go:" compile directives
For example, this broke cgo, since it uses go:linkname. Updates #12.
This commit is contained in:
3
testdata/scripts/syntax.txt
vendored
3
testdata/scripts/syntax.txt
vendored
@@ -2,6 +2,8 @@ garble build main.go
|
||||
exec ./main
|
||||
cmp stderr main.stderr
|
||||
|
||||
! binsubstr main$exe 'valuable information'
|
||||
|
||||
-- main.go --
|
||||
package main
|
||||
|
||||
@@ -10,6 +12,7 @@ import (
|
||||
"go/ast"
|
||||
)
|
||||
|
||||
// This comment contains valuable information. Ensure it's not in the final binary.
|
||||
var V interface{}
|
||||
|
||||
type T struct {
|
||||
|
||||
Reference in New Issue
Block a user