Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 440 for evacuatedX (0.14 sec)

  1. test/fixedbugs/bug379.go

    // Issue 2452.
    
    // Check that the error messages says 
    //	bug378.go:17: 1 + 2 not used
    // and not
    //	bug378.go:17: 1 not used
    
    package main
    
    func main() {
    	1 + 2 // ERROR "1 \+ 2 evaluated but not used|value computed is not used|is not used"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 14 21:28:48 UTC 2020
    - 419 bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/invocation/DefaultGradleSpec.groovy

            gradle.afterProject(closure)
    
            and:
            gradle.projectEvaluationBroadcaster.afterEvaluate(null, null)
    
            then:
            called
        }
    
        def "broadcasts settings evaluated events to closures"() {
            given:
            def called = false
            def closure = { called = true }
    
            when:
            gradle.settingsEvaluated(closure)
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 22:53:34 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/dependencyManagement/customizingResolution-substitutionRule/kotlin/build.gradle.kts

    // Need to have at least one configuration declared, otherwise the rules are never evaluated
    val conf by configurations.creating
    
    // tag::module_to_project_substitution[]
    configurations.all {
        resolutionStrategy.dependencySubstitution {
            substitute(module("org.utils:api"))
                .using(project(":api")).because("we work with the unreleased development version")
            substitute(module("org.utils:util:2.5")).using(project(":util"))
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 796 bytes
    - Viewed (0)
  4. test/fixedbugs/bug357.go

    // issue 1993.
    // error used to have last line number in file
    
    package main
    
    func bla1() bool {
    	return false
    }
    
    func bla5() bool {
    	_ = 1
    	false  // ERROR "false evaluated but not used|value computed is not used|is not used"
    	_ = 2
    	return false
    }
    
    func main() {
    	x := bla1()
    	_ = x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 14 21:28:48 UTC 2020
    - 461 bytes
    - Viewed (0)
  5. test/fixedbugs/issue4654.go

    	m := make(map[int]int)
    	defer delete(m, 1) // ok
    	defer panic(1) // ok
    	defer print(1) // ok
    	defer println(1) // ok
    	defer recover() // ok
    
    	int(0) // ERROR "int\(0\) evaluated but not used|is not used"
    	string([]byte("abc")) // ERROR "string\(.*\) evaluated but not used|is not used"
    
    	append(x, 1) // ERROR "not used"
    	cap(x) // ERROR "not used"
    	complex(1, 2) // ERROR "not used"
    	complex(f, 1) // ERROR "not used"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 2.7K bytes
    - Viewed (0)
  6. test/struct0.go

    // run
    
    // Copyright 2011 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 zero length structs.
    // Used to not be evaluated.
    // Issue 2232.
    
    package main
    
    func recv(c chan interface{}) struct{} {
    	return (<-c).(struct{})
    }
    
    var m = make(map[interface{}]int)
    
    func recv1(c chan interface{}) {
    	defer rec()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 565 bytes
    - Viewed (0)
  7. test/fixedbugs/issue28688.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"fmt"
    )
    
    // When using soft-float, OMUL might be rewritten to function
    // call so we should ensure it was evaluated first. Stack frame
    // setup for "test" function call should happen after call to runtime.fmul32
    
    var x int32 = 1
    
    func main() {
    	var y float32 = 1.0
    	test(x, y*y)
    }
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 03 16:14:24 UTC 2021
    - 622 bytes
    - Viewed (0)
  8. test/fixedbugs/issue26248.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 26248: gccgo miscompiles interface field expression.
    // In G().M where G returns an interface, G() is evaluated twice.
    
    package main
    
    type I interface {
    	M()
    }
    
    type T struct{}
    
    func (T) M() {}
    
    var g = 0
    
    //go:noinline
    func G() I {
    	g++
    	return T{}
    }
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 10 01:19:37 UTC 2018
    - 567 bytes
    - Viewed (0)
  9. test/fixedbugs/issue4313.go

    // Order of operations in select.
    
    package main
    
    func main() {
    	c := make(chan int, 1)
    	x := 0
    	select {
    	case c <- x: // should see x = 0, not x = 42 (after makec)
    	case <-makec(&x): // should be evaluated only after c and x on previous line
    	}
    	y := <-c
    	if y != 0 {
    		panic(y)
    	}
    }
    
    func makec(px *int) chan bool {
    	if false { for {} }
    	*px = 42
    	return make(chan bool, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 546 bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/mod_find.txt

    go mod init
    rm go.mod
    
    # GOPATH/src/link where GOPATH and link are both symlinks
    cd $GOPATH/src/link
    go mod init
    stderr link
    rm go.mod
    
    # Too hard: doesn't match unevaluated nor completely evaluated. (Only partially evaluated.)
    # Whether this works depends on which OS we are running on.
    # cd $WORK/gopath/src/link
    # ! go mod init
    
    -- $WORK/x/x.go --
    package x // import "x"
    
    -- $GOPATH/src/example.com/x/y/y.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:14 UTC 2022
    - 2.5K bytes
    - Viewed (0)
Back to top