go/src/cmd/cgo
qmuntal dceee2e983 all: use testenv.Executable instead of os.Executable and os.Args[0]
In test files, using testenv.Executable is more reliable than
os.Executable or os.Args[0].

Change-Id: I88e577efeabc20d02ada27bf706ae4523129128e
Reviewed-on: https://go-review.googlesource.com/c/go/+/651955
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2025-02-24 11:03:10 -08:00
..
internal all: use testenv.Executable instead of os.Executable and os.Args[0] 2025-02-24 11:03:10 -08:00
ast.go cmd/cgo,cmd/go: preallocate slices if they have known fixed capacities 2024-10-14 15:47:06 +00:00
ast_go1.go cmd/cgo: walk {FuncType,TypeSpec}.TypeParams fields 2022-11-30 21:45:10 +00:00
ast_go118.go cmd/cgo: walk {FuncType,TypeSpec}.TypeParams fields 2022-11-30 21:45:10 +00:00
doc.go cmd/cgo: use full prototype for main in C code 2024-12-11 15:57:34 -08:00
gcc.go cmd/cgo: improve error message for unknown name 2024-11-20 22:16:58 +00:00
godefs.go cmd/cgo: don't force rewritten code onto a single line 2024-05-20 15:50:06 +00:00
main.go cmd: use cmd/internal/hash.New32 and Sum32 only 2025-02-13 12:34:30 -08:00
out.go cmd/cgo: explicitly use void for functions with no parameters 2025-02-18 09:27:34 -08:00
util.go cmd/cgo: use slices.Index 2024-09-05 18:54:24 +00:00