- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 291 for Gcflags (0.24 sec)
-
src/cmd/compile/internal/test/clobberdead_test.go
src := filepath.Join(tmpdir, "x.go") err := os.WriteFile(src, []byte(helloSrc), 0644) if err != nil { t.Fatalf("write file failed: %v", err) } cmd := testenv.Command(t, testenv.GoToolPath(t), "run", "-gcflags=all="+flag, src) out, err := cmd.CombinedOutput() if err != nil { t.Fatalf("go run failed: %v\n%s", err, out) } if string(out) != "hello\n" { t.Errorf("wrong output: got %q, want %q", out, "hello\n") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 15 20:19:15 UTC 2022 - 1.2K bytes - Viewed (0) -
test/fixedbugs/issue59638.go
// build -gcflags=-l=4 // Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package p type Interface interface { MonitoredResource() (resType string, labels map[string]string) Done() } func Autodetect(x int) Interface { return func() Interface { func() Interface { x++ Do(func() { var ad, gd Interface
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 05 21:04:28 UTC 2023 - 1004 bytes - Viewed (0) -
src/cmd/compile/internal/test/inl_test.go
args := []string{"build", "-gcflags=runtime=-m", "runtime"} cmd := testenv.Command(t, testenv.GoToolPath(t), args...) b, err := cmd.CombinedOutput() if err != nil { t.Fatalf("build failed (%v): %s", err, b) } mbase := collectInlCands(string(b)) // Redo the build with -cover, also with "-m". args = []string{"build", "-gcflags=runtime=-m", mode, "runtime"}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 09 04:07:57 UTC 2024 - 10.7K bytes - Viewed (0) -
src/cmd/compile/internal/test/ssa_test.go
t.Fatalf("test file testdata/%s has no tests in it", f.Name()) } } flags := []string{""} if runtime.GOARCH == "arm" || runtime.GOARCH == "mips" || runtime.GOARCH == "mips64" || runtime.GOARCH == "386" { flags = append(flags, ",softfloat") } for _, flag := range flags { args := []string{"test", "-c", "-gcflags=-d=ssa/check/on" + flag, "-o", filepath.Join(tmpdir, "code.test")} args = append(args, srcs...)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 05 23:35:29 UTC 2023 - 4.9K bytes - Viewed (0) -
test/maymorestack.go
// run -gcflags=-d=maymorestack=main.mayMoreStack // Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test the maymorestack testing hook by injecting a hook that counts // how many times it is called and checking that count. package main import "runtime" var count uint32 //go:nosplit func mayMoreStack() { count++
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 05 00:52:06 UTC 2021 - 1.1K bytes - Viewed (0) -
test/codegen/clobberdead.go
// asmcheck -gcflags=-clobberdead //go:build amd64 || arm64 // Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package codegen type T [2]*int // contain pointer, not SSA-able (so locals are not registerized) var p1, p2, p3 T func F() { // 3735936685 is 0xdeaddead. On ARM64 R27 is REGTMP.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.3K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/debug_test.go
} testNexting(t, basename, tag, gcflags, 1000, moreargs...) }) } // skipSubTest is the same as subTest except that it skips the test if execution is not forced (-f) func skipSubTest(t *testing.T, tag string, basename string, gcflags string, count int, moreargs ...string) { t.Run(tag+"-"+basename, func(t *testing.T) { if *force { testNexting(t, basename, tag, gcflags, count, moreargs...) } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 16:11:47 UTC 2024 - 28.6K bytes - Viewed (0) -
test/codegen/clobberdeadreg.go
// asmcheck -gcflags=-clobberdeadreg //go:build amd64 // Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package codegen type S struct { a, b, c, d, e, f int } func F(a, b, c int, d S) { // -2401018187971961171 is 0xdeaddeaddeaddead
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.3K bytes - Viewed (0) -
src/cmd/link/internal/ld/dwarf_test.go
t.Helper() t.Skipf("skipping on %s/%s: no DWARF symbol table in executables", runtime.GOOS, runtime.GOARCH) } } const ( DefaultOpt = "-gcflags=" NoOpt = "-gcflags=-l -N" OptInl4 = "-gcflags=-l=4" OptAllInl4 = "-gcflags=all=-l=4" ) func TestRuntimeTypesPresent(t *testing.T) { t.Parallel() testenv.MustHaveGoBuild(t) mustHaveDWARF(t) dir := t.TempDir()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 08 01:38:11 UTC 2024 - 48.6K bytes - Viewed (0) -
src/cmd/go/testdata/script/cgo_path_space_quote.txt
# spaces. Arguments are normally split on spaces, tabs, newlines. If an # argument contains these characters, the entire argument may be quoted # with single or double quotes. This is the same as -gcflags and similar # options. [short] skip [!exec:clang] [!exec:gcc] skip [!cgo] skip env GOENV=$WORK/go.env mkdir 'program files' go build -o 'program files' './which cc/which cc.go'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 16 20:23:26 UTC 2021 - 1.2K bytes - Viewed (0)