Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 180 for progx (0.05 sec)

  1. src/cmd/go/testdata/script/gcflags_patterns.txt

    stderr 'link.* -X=x.y=z'
    
    # -ldflags applies to link of command
    go build -a -n -ldflags=-X=math.pi=3 my/cmd/prog
    stderr 'link.* -X=math.pi=3'
    
    # -ldflags applies to link of command even with strange directory name
    go build -a -n -ldflags=-X=math.pi=3 my/cmd/prog/
    stderr 'link.* -X=math.pi=3'
    
    # -ldflags applies to current directory
    cd my/cmd/prog
    go build -a -n -ldflags=-X=math.pi=3
    stderr 'link.* -X=math.pi=3'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 21 14:58:44 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/util.go

    		sc += ".U"
    	}
    	return sc
    }
    
    func (p *Prog) String() string {
    	if p == nil {
    		return "<nil Prog>"
    	}
    	if p.Ctxt == nil {
    		return "<Prog without ctxt>"
    	}
    	return fmt.Sprintf("%.5d (%v)\t%s", p.Pc, p.Line(), p.InstructionString())
    }
    
    func (p *Prog) InnermostString(w io.Writer) {
    	if p == nil {
    		io.WriteString(w, "<nil Prog>")
    		return
    	}
    	if p.Ctxt == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/dwarf_test.go

    	t.Parallel()
    
    	mustHaveDWARF(t)
    
    	const prog = `package main
    %s
    func main() {}
    `
    	tests := []struct {
    		name string
    		prog string
    		file string
    		line int64
    	}{
    		{
    			name: "normal",
    			prog: fmt.Sprintf(prog, ""),
    			file: "test.go",
    			line: 3,
    		},
    		{
    			name: "line-directive",
    			prog: fmt.Sprintf(prog, "//line /foobar.go:200"),
    			file: "foobar.go",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 01:38:11 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  4. test/turing.go

    var p, pc int
    var a [30000]byte
    
    const prog = "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.!"
    
    func scan(dir int) {
    	for nest := dir; dir*nest > 0; pc += dir {
    		switch prog[pc+dir] {
    		case ']':
    			nest--
    		case '[':
    			nest++
    		}
    	}
    }
    
    func main() {
    	r := ""
    	for {
    		switch prog[pc] {
    		case '>':
    			p++
    		case '<':
    			p--
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 00:48:19 UTC 2012
    - 893 bytes
    - Viewed (0)
  5. src/cmd/link/dwarf_test.go

    		t.Skipf("skipping on %s/%s: no DWARF symbol table in executables", runtime.GOOS, runtime.GOARCH)
    	}
    
    	t.Parallel()
    
    	for _, prog := range []string{"testprog", "testprogcgo"} {
    		prog := prog
    		expectDWARF := expectDWARF
    		if runtime.GOOS == "aix" && prog == "testprogcgo" {
    			extld := os.Getenv("CC")
    			if extld == "" {
    				extld = "gcc"
    			}
    			extldArgs, err := quoted.Split(extld)
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 17:05:14 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/cover_test_localpkg_filepath.txt

    [short] skip
    
    # collect coverage profile in text format
    go test -coverprofile=blah.prof prog.go prog_test.go
    
    # should not contain cmd-line pseudo-import-path
    grep prog.go blah.prof
    grep $PWD blah.prof
    ! grep command-line-arguments blah.prof
    
    -- prog.go --
    package main
    
    func Mumble(x int) int {
    	if x < 0 {
    		return -x
    	}
    	return 42
    }
    
    func Grumble(y int) int {
    	return -y
    }
    
    func main() {
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 01 14:11:54 UTC 2022
    - 571 bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/telemetry/internal/upload/reports.go

    func findProgReport(meta map[string]string, report *telemetry.Report) *telemetry.ProgramReport {
    	for _, prog := range report.Programs {
    		if prog.Program == meta["Program"] && prog.Version == meta["Version"] &&
    			prog.GoVersion == meta["GoVersion"] && prog.GOOS == meta["GOOS"] &&
    			prog.GOARCH == meta["GOARCH"] {
    			return prog
    		}
    	}
    	prog := telemetry.ProgramReport{
    		Program:   meta["Program"],
    		Version:   meta["Version"],
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. test/fixedbugs/bug031.go

    // run
    
    // Copyright 2009 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 main
    
    func main() {
    prog := "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"+
    "xxxxxxxxxx"+
    "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"+
    "xxxxxxxxxxxxxxxxxxxxxx"+
    "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"+
    "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"+
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:48:57 UTC 2012
    - 802 bytes
    - Viewed (0)
  9. src/cmd/internal/obj/ppc64/asm9_gtables.go

    }
    
    // brw RA,RS
    func type_brw(c *ctxt9, p *obj.Prog, t *Optab, out *[5]uint32) {
    	o0 := GenOpcodes[p.As-AXXSETACCZ]
    	o0 |= uint32(p.To.Reg&0x1f) << 16   // RA
    	o0 |= uint32(p.From.Reg&0x1f) << 21 // RS
    	out[0] = o0
    }
    
    // hashchkp RB,offset(RA)
    func type_hashchkp(c *ctxt9, p *obj.Prog, t *Optab, out *[5]uint32) {
    	o0 := GenOpcodes[p.As-AXXSETACCZ]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 16 20:18:50 UTC 2022
    - 42.6K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/issue33808_test.go

    	"runtime"
    	"strings"
    	"testing"
    )
    
    const prog = `
    package main
    
    import "log"
    
    func main() {
    	log.Fatalf("HERE")
    }
    `
    
    func TestIssue33808(t *testing.T) {
    	if runtime.GOOS != "darwin" {
    		return
    	}
    	testenv.MustHaveGoBuild(t)
    	testenv.MustHaveCGO(t)
    	t.Parallel()
    
    	dir := t.TempDir()
    
    	f := gobuild(t, dir, prog, "-ldflags=-linkmode=external")
    	f.Close()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 08 20:03:01 UTC 2021
    - 792 bytes
    - Viewed (0)
Back to top