Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for O2 (0.67 sec)

  1. test/fixedbugs/issue24503.go

    // Issue 24503: Handle == and != of addresses taken of symbols consistently.
    
    package main
    
    func test() string {
    	type test struct{}
    	o1 := test{}
    	o2 := test{}
    	if &o1 == &o2 {
    		return "equal"
    	}
    	if &o1 != &o2 {
    		return "unequal"
    	}
    	return "failed"
    }
    
    func main() {
    	if test() == "failed" {
    		panic("expected either 'equal' or 'unequal'")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 31 21:37:13 UTC 2018
    - 517 bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/execution/plan/NodeComparator.java

        }
    
        @Override
        public int compare(Node o1, Node o2) {
    
            if (o1 instanceof OrdinalNode || o1 instanceof ResolveMutationsNode) {
                if (o1.equals(o2)) {
                    return 0;
                } else {
                    return -1;
                }
            }
            if (o2 instanceof OrdinalNode || o2 instanceof ResolveMutationsNode) {
                return 1;
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Aug 26 20:13:45 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  3. src/internal/coverage/pods/pods_test.go

    o1/covcounters.ae7be26cdaa742ca148068d5ac90eaca.41.2 o:0
    o1/covcounters.ae7be26cdaa742ca148068d5ac90eaca.42.1 o:0
    o2/covcounters.ae7be26cdaa742ca148068d5ac90eaca.35.11 o:1
    ]`,
    		`o2/covmeta.aaf2f89992379705dac844c0a2a1d45f [
    o2/covcounters.aaf2f89992379705dac844c0a2a1d45f.36.3 o:1
    o2/covcounters.aaf2f89992379705dac844c0a2a1d45f.37.2 o:1
    o2/covcounters.aaf2f89992379705dac844c0a2a1d45f.38.1 o:1
    ]`,
    	}
    	for k, exp := range expected {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 31 14:00:17 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/ConstructorComparator.java

        @Override
        public int compare(ClassGenerator.GeneratedConstructor<?> o1, ClassGenerator.GeneratedConstructor<?> o2) {
            int parameterSort = Integer.compare(o1.getParameterTypes().length, o2.getParameterTypes().length);
            if (parameterSort == 0) {
                // Both constructors have the same number of parameters
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  5. platforms/core-runtime/build-profile/src/main/java/org/gradle/profile/Operation.java

                @Override
                public int compare(Operation o1, Operation o2) {
                    long byElapsedTime = o2.getElapsedTime() - o1.getElapsedTime();
                    if (byElapsedTime > 0) {
                        return 1;
                    } else if (byElapsedTime < 0) {
                        return -1;
                    }
                    return o1.getDescription().compareTo(o2.getDescription());
                }
            };
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 01 12:58:53 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  6. test/fixedbugs/issue44378.go

    package a
    
    type O interface{}
    type IO int
    type OS int
    
    type A struct {
    	x int
    }
    
    // original versions of the two function
    func (p *A) UO(o O) {
    	p.r(o, o)
    }
    func (p *A) r(o1, o2 O) {
    	switch x := o1.(type) {
    	case *IO:
    		p.x = int(*x)
    	case *OS:
    		p.x = int(*x + 2)
    	}
    }
    
    // see note above about the importance of all this code winding up on one line.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 21 02:25:26 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  7. test/fixedbugs/issue53137.go

    import (
    	"unsafe"
    )
    
    type Embedded struct {
    	B int
    }
    
    type S[K any] struct {
    	A K
    	Embedded
    }
    
    func showOffsets[K any](d *S[K]) {
    	o1 := unsafe.Offsetof(d.B)
    	o2 := unsafe.Offsetof(d.Embedded)
    	if o1 != o2 {
    		panic("offset mismatch")
    	}
    }
    
    func main() {
    	showOffsets(new(S[int]))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 31 14:58:09 UTC 2022
    - 466 bytes
    - Viewed (0)
  8. .github/ISSUE_TEMPLATE/00-bug.yml

            AR="ar"
            CC="clang"
            CXX="clang++"
            CGO_ENABLED="1"
            GOMOD="/dev/null"
            GOWORK=""
            CGO_CFLAGS="-O2 -g"
            CGO_CPPFLAGS=""
            CGO_CXXFLAGS="-O2 -g"
            CGO_FFLAGS="-O2 -g"
            CGO_LDFLAGS="-O2 -g"
            PKG_CONFIG="pkg-config"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 04 23:31:17 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/apis/apidiscovery/v2/fuzzer_test.go

    		}
    		o, err := scheme.ConvertToVersion(expected, v2beta1.SchemeGroupVersion)
    		require.NoError(t, err)
    		v2beta1Type := o.(*v2beta1.APIGroupDiscoveryList)
    
    		o2, err := scheme.ConvertToVersion(v2beta1Type, v2.SchemeGroupVersion)
    		require.NoError(t, err)
    		actual := o2.(*v2.APIGroupDiscoveryList)
    
    		if !reflect.DeepEqual(expected, actual) {
    			t.Error(cmp.Diff(expected, actual))
    		}
    	}
    
    	// v2beta1 -> v2 -> v2beta1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 00:29:39 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraphEdge.java

        /**
         * helper for equals
         */
        private static boolean objectsEqual(Object o1, Object o2) {
            if (o1 == null && o2 == null) {
                return true;
            }
            if (o1 == null || o2 == null) {
                return false; // as they are not both null
            }
            return o1.equals(o2);
        }
    
        // ----------------------------------------------------------------------------
        /**
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 11:28:54 UTC 2023
    - 4.8K bytes
    - Viewed (0)
Back to top