From f6ad4dcef54c5ce997a4bad5a6d86de229015700 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 16 Apr 2024 21:25:22 +0200 Subject: Adding upstream version 1.22.1. Signed-off-by: Daniel Baumann --- src/cmd/compile/internal/ssa/testdata/i22600.go | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/cmd/compile/internal/ssa/testdata/i22600.go (limited to 'src/cmd/compile/internal/ssa/testdata/i22600.go') diff --git a/src/cmd/compile/internal/ssa/testdata/i22600.go b/src/cmd/compile/internal/ssa/testdata/i22600.go new file mode 100644 index 0000000..27f0d3d --- /dev/null +++ b/src/cmd/compile/internal/ssa/testdata/i22600.go @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "os" +) + +func test() { + pwd, err := os.Getwd() + if err != nil { + fmt.Println(err) + os.Exit(1) + } + fmt.Println(pwd) +} + +func main() { + growstack() // Use stack early to prevent growth during test, which confuses gdb + test() +} + +var snk string + +//go:noinline +func growstack() { + snk = fmt.Sprintf("%#v,%#v,%#v", 1, true, "cat") +} -- cgit v1.2.3