Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for issue12397 (0.14 sec)

  1. test/escape2.go

    			println(*x)
    		}
    	}
    	_ = f
    }
    
    func issue11387(x int) func() int {
    	f := func() int { return x }    // ERROR "func literal escapes to heap"
    	slice1 := []func() int{f}       // ERROR "\[\].* does not escape"
    	slice2 := make([]func() int, 1) // ERROR "make\(.*\) does not escape"
    	copy(slice2, slice1)
    	return slice2[0]
    }
    
    func issue12397(x, y int) { // ERROR "moved to heap: y$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  2. test/escape2n.go

    			println(*x)
    		}
    	}
    	_ = f
    }
    
    func issue11387(x int) func() int {
    	f := func() int { return x }    // ERROR "func literal escapes to heap"
    	slice1 := []func() int{f}       // ERROR "\[\].* does not escape"
    	slice2 := make([]func() int, 1) // ERROR "make\(.*\) does not escape"
    	copy(slice2, slice1)
    	return slice2[0]
    }
    
    func issue12397(x, y int) { // ERROR "moved to heap: y$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  3. test/fixedbugs/issue18393.go

    // Test that compiler directives are ignored if they
    // don't start at the beginning of the line.
    
    package p
    
    //line issue18393.go:20
    import 42 // error on line 20
    
    
    /* //line not at start of line: ignored */ //line issue18393.go:30
    var x     // error on line 24, not 30
    
    
    // ERROR "import path must be a string"
    
    
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 14 17:26:06 UTC 2020
    - 565 bytes
    - Viewed (0)
  4. src/go/doc/testdata/issue12839.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package issue12839 is a go/doc test to test association of a function
    // that returns multiple types.
    // See golang.org/issue/12839.
    // (See also golang.org/issue/27928.)
    package issue12839
    
    import "p"
    
    type T1 struct{}
    
    type T2 struct{}
    
    func (t T1) hello() string {
    	return "hello"
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 04 17:57:55 UTC 2018
    - 1.3K bytes
    - Viewed (0)
  5. src/go/doc/testdata/issue12839.0.golden

    // Package issue12839 is a go/doc test to test association of a ...
    PACKAGE issue12839
    
    IMPORTPATH
    	testdata/issue12839
    
    IMPORTS
    	p
    
    FILENAMES
    	testdata/issue12839.go
    
    FUNCTIONS
    	// F1 should not be associated with T1 
    	func F1() (*T1, *T2)
    
    	// F10 should not be associated with T1. 
    	func F10() (T1, T2, error)
    
    	// F4 should not be associated with a type (same as F1) 
    	func F4() (a T1, b T2)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 04 17:57:55 UTC 2018
    - 928 bytes
    - Viewed (0)
  6. src/go/doc/testdata/issue12839.1.golden

    // Package issue12839 is a go/doc test to test association of a ...
    PACKAGE issue12839
    
    IMPORTPATH
    	testdata/issue12839
    
    IMPORTS
    	p
    
    FILENAMES
    	testdata/issue12839.go
    
    FUNCTIONS
    	// F1 should not be associated with T1 
    	func F1() (*T1, *T2)
    
    	// F10 should not be associated with T1. 
    	func F10() (T1, T2, error)
    
    	// F4 should not be associated with a type (same as F1) 
    	func F4() (a T1, b T2)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 04 17:57:55 UTC 2018
    - 962 bytes
    - Viewed (0)
  7. src/go/doc/testdata/issue12839.2.golden

    // Package issue12839 is a go/doc test to test association of a ...
    PACKAGE issue12839
    
    IMPORTPATH
    	testdata/issue12839
    
    IMPORTS
    	p
    
    FILENAMES
    	testdata/issue12839.go
    
    FUNCTIONS
    	// F1 should not be associated with T1 
    	func F1() (*T1, *T2)
    
    	// F10 should not be associated with T1. 
    	func F10() (T1, T2, error)
    
    	// F4 should not be associated with a type (same as F1) 
    	func F4() (a T1, b T2)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 04 17:57:55 UTC 2018
    - 928 bytes
    - Viewed (0)
  8. test/fixedbugs/issue21317.go

    // by exec-ing
    
    package main
    
    import (
    	"fmt"
    	"io/ioutil"
    	"log"
    	"os"
    	"os/exec"
    	"strings"
    )
    
    func main() {
    	f, err := ioutil.TempFile("", "issue21317.go")
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Fprintf(f, `
    package main
    
    import "fmt"
    
    func main() {
            n, err := fmt.Println(1)
    }
    `)
    	f.Close()
    	defer os.RemoveAll(f.Name())
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  9. test/fixedbugs/issue12347.go

    Emmanuel Odeke <******@****.***> 1460323946 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 263 bytes
    - Viewed (0)
  10. src/go/parser/testdata/issue11377.src

    Robert Griesemer <******@****.***> 1698787325 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 12:56:53 UTC 2023
    - 542 bytes
    - Viewed (0)
Back to top