Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 170 for evacuatedX (0.16 sec)

  1. test/fixedbugs/issue15303.go

    package main
    
    import "os"
    
    func main() {
    	var x int
    	f := func() (r [4]int) {
    		x++
    		return
    	}
    	_ = f() == f()
    	if x != 2 {
    		println("f evaluated ", x, " times, want 2")
    		os.Exit(1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 25 17:51:10 UTC 2016
    - 437 bytes
    - Viewed (0)
  2. test/fixedbugs/issue4620.go

    // run
    
    // Copyright 2013 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.
    
    // Issue 4620: map indexes are not evaluated before assignment of other elements
    
    package main
    
    import "fmt"
    
    func main() {
    	m := map[int]int{0:1}
    	i := 0
    	i, m[i] = 1, 2
    	if m[0] != 2 {
    		fmt.Println(m)
    		panic("m[i] != 2")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 398 bytes
    - Viewed (0)
  3. pkg/kubelet/eviction/api/types.go

    	// The following fields are exclusive. Only the topmost non-zero field is used.
    
    	// Quantity is a quantity associated with the signal that is evaluated against the specified operator.
    	Quantity *resource.Quantity
    	// Percentage represents the usage percentage over the total resource that is evaluated against the specified operator.
    	Percentage float32
    }
    
    // Threshold defines a metric for when eviction should occur.
    type Threshold struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/dependencyManagement/customizingResolution-substitutionRule/groovy/build.gradle

    // Need to have at least one configuration declared, otherwise the rules are never evaluated
    configurations {
        conf
    }
    
    // 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
    - 754 bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top