Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for ok1 (0.89 sec)

  1. test/fixedbugs/issue52856.dir/main.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import "./a"
    
    func F() any {
    	return struct{ int }{0}
    }
    
    func main() {
    	_, ok1 := F().(struct{ int })
    	_, ok2 := a.F().(struct{ int })
    	if !ok1 || ok2 {
    		panic(0)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Jun 26 00:26:59 UTC 2022
    - 343 bytes
    - Viewed (0)
  2. src/net/port_unix.go

    			continue
    		}
    		portnet := f[1] // "80/tcp"
    		port, j, ok := dtoi(portnet)
    		if !ok || port <= 0 || j >= len(portnet) || portnet[j] != '/' {
    			continue
    		}
    		netw := portnet[j+1:] // "tcp"
    		m, ok1 := services[netw]
    		if !ok1 {
    			m = make(map[string]int)
    			services[netw] = m
    		}
    		for i := 0; i < len(f); i++ {
    			if i != 1 { // f[1] was port/net
    				m[f[i]] = port
    			}
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  3. test/initializerr.go

    var a5 = []byte{x: 2}                           // ERROR "index"
    var a6 = []byte{1: 1, 2: 2, 1: 3}               // ERROR "duplicate"
    
    var ok1 = S{}       // should be ok
    var ok2 = T{S: ok1} // should be ok
    
    // These keys can be computed at compile time but they are
    // not constants as defined by the spec, so they do not trigger
    // compile-time errors about duplicate key values.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 11 02:26:58 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/JUnit4CategoriesOrTagsCoverageIntegrationTest.groovy

            return !(version in ['4.10', '4.11', '4.12'])
        }
    
        def 'reports unloadable #type'() {
            given:
            testSources.with {
                testClass('SomeTestClass').with {
                    testMethod('ok1')
                    testMethod('ok2')
                }
            }
            testSourceGenerator.writeAllSources(testSources)
            buildFile << """
                apply plugin: "java"
    
                ${mavenCentralRepository()}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  5. src/syscall/asm_unix_amd64.s

    	RET
    
    TEXT	·RawSyscall(SB),NOSPLIT,$0-56
    	MOVQ	a1+8(FP), DI
    	MOVQ	a2+16(FP), SI
    	MOVQ	a3+24(FP), DX
    	MOVQ	trap+0(FP), AX	// syscall entry
    	SYSCALL
    	JCC	ok1
    	MOVQ	$-1, r1+32(FP)	// r1
    	MOVQ	$0, r2+40(FP)	// r2
    	MOVQ	AX, err+48(FP)	// errno
    	RET
    ok1:
    	MOVQ	AX, r1+32(FP)	// r1
    	MOVQ	DX, r2+40(FP)	// r2
    	MOVQ	$0, err+48(FP)	// errno
    	RET
    
    TEXT	·RawSyscall6(SB),NOSPLIT,$0-80
    	MOVQ	a1+8(FP), DI
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 16 15:40:39 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  6. src/os/types.go

    // the decision may be based on the path names.
    // SameFile only applies to results returned by this package's [Stat].
    // It returns false in other cases.
    func SameFile(fi1, fi2 FileInfo) bool {
    	fs1, ok1 := fi1.(*fileStat)
    	fs2, ok2 := fi2.(*fileStat)
    	if !ok1 || !ok2 {
    		return false
    	}
    	return sameFile(fs1, fs2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 20:52:06 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/cycle_state_test.go

    		if !ok {
    			isEqual = false
    			msg = fmt.Sprintf("CycleState B doesn't have the data which CycleState A has. key: %v, data: %v", k, v1)
    			return false
    		}
    
    		typed1, ok1 := v1.(*fakeData)
    		typed2, ok2 := v2.(*fakeData)
    		if !ok1 || !ok2 {
    			isEqual = false
    			msg = fmt.Sprintf("CycleState has the data which is not type *fakeData.")
    			return false
    		}
    
    		if typed1.data != typed2.data {
    			isEqual = false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 14 15:26:20 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  8. src/syscall/asm_darwin_amd64.s

    TEXT ·RawSyscall(SB),NOSPLIT,$0-56
    	MOVQ	a1+8(FP), DI
    	MOVQ	a2+16(FP), SI
    	MOVQ	a3+24(FP), DX
    	MOVQ	trap+0(FP), AX	// syscall entry
    	ADDQ	$0x2000000, AX
    	SYSCALL
    	JCC	ok1
    	MOVQ	$-1, r1+32(FP)
    	MOVQ	$0, r2+40(FP)
    	MOVQ	AX, err+48(FP)
    	RET
    ok1:
    	MOVQ	AX, r1+32(FP)
    	MOVQ	DX, r2+40(FP)
    	MOVQ	$0, err+48(FP)
    	RET
    
    // func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 16 15:40:39 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  9. src/syscall/asm_unix_386.s

    	// slide args down on top of system call number
    	LEAL		a1+4(FP), SI
    	LEAL		trap+0(FP), DI
    	CLD
    	MOVSL
    	MOVSL
    	MOVSL
    	INT	$0x80
    	JAE	ok1
    	MOVL	$-1, r1+16(FP)	// r1
    	MOVL	$-1, r2+20(FP)	// r2
    	MOVL	AX, err+24(FP)	// errno
    	RET
    ok1:
    	MOVL	AX, r1+16(FP)	// r1
    	MOVL	DX, r2+20(FP)	// r2
    	MOVL	$0, err+24(FP)	// errno
    	RET
    
    TEXT	·RawSyscall6(SB),NOSPLIT,$0-40
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 06 10:24:44 UTC 2021
    - 2.7K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm-infrastructure/src/testFixtures/groovy/org/gradle/api/internal/tasks/testing/junit/JUnitTestClassProcessorData.groovy

            return Description.createSuiteDescription(type)
        }
    
        void run(RunNotifier notifier) {
            notifier.fireTestStarted(Description.createTestDescription(type, "ok1"))
            notifier.fireTestFinished(Description.createTestDescription(type, "ok1"))
            notifier.fireTestStarted(Description.createTestDescription(type, "broken"))
            throw failure.rawFailure
        }
    }
    
    public class ATestClassWhichCannotBeLoaded {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 9.1K bytes
    - Viewed (0)
Back to top