Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 218 for S1 (0.02 sec)

  1. test/fixedbugs/bug515.go

    // license that can be found in the LICENSE file.
    
    // Caused a gofrontend crash.
    
    //go:build gccgo
    
    package p
    
    //go:notinheap
    type S1 struct{}
    
    type S2 struct {
    	r      interface{ Read([]byte) (int, error) }
    	s1, s2 []byte
    	p      *S1
    	n      uintptr
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 06:22:23 UTC 2022
    - 392 bytes
    - Viewed (0)
  2. test/fixedbugs/issue4734.go

    // license that can be found in the LICENSE file.
    
    // Caused gccgo to emit multiple definitions of the same symbol.
    
    package p
    
    type S1 struct{}
    
    func (s *S1) M() {}
    
    type S2 struct {
    	F struct{ *S1 }
    }
    
    func F() {
    	_ = struct{ *S1 }{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 359 bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/fuse.go

    		s1, ss1 = b, s1
    	} else {
    		ss1 = s1.Succs[0].b
    		i1 = s1.Succs[0].i
    	}
    	if ss0 != ss1 {
    		if s0.Kind == BlockPlain && isEmpty(s0) && s1.Kind == BlockPlain && isEmpty(s1) {
    			// Two special cases where both s0, s1 and ss are empty blocks.
    			if s0 == ss1 {
    				s0, ss0 = b, ss1
    			} else if ss0 == s1 {
    				s1, ss1 = b, ss0
    			} else {
    				return false
    			}
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:45:54 UTC 2023
    - 9K bytes
    - Viewed (0)
  4. test/fixedbugs/issue46386.go

    // license that can be found in the LICENSE file.
    
    package main
    
    type I interface {
    	M() interface{}
    }
    
    type S1 struct{}
    
    func (S1) M() interface{} {
    	return nil
    }
    
    type EI interface{}
    
    type S struct{}
    
    func (S) M(as interface{ I }) {}
    
    func f() interface{ EI } {
    	return &S1{}
    }
    
    func main() {
    	var i interface{ I }
    	(&S{}).M(i)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 08 12:17:50 UTC 2021
    - 461 bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/device_compilation_cluster_signature_test.cc

      std::vector<DeviceCompilationClusterSignature> signatures = {s1, s2, s3};
      for (int i = 0; i < signatures.size(); ++i) {
        for (int j = 0; j < signatures.size(); ++j) {
          EXPECT_EQ(i == j, signatures[i] == signatures[j])
              << "s1: " << signatures[i].HumanString() << "\n"
              << "s2: " << signatures[j].HumanString();
          EXPECT_EQ(i == j,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  6. test/abi/fuzz_trailing_zero_field.go

    package main
    
    var p0exp = S1{
    	F1: complex(float64(2.3640607624715027), float64(-0.2717825524109192)),
    	F2: S2{F1: 9},
    	F3: 103050709,
    }
    
    type S1 struct {
    	F1 complex128
    	F2 S2
    	F3 uint64
    }
    
    type S2 struct {
    	F1 uint64
    	F2 empty
    }
    
    type empty struct {
    }
    
    //go:noinline
    //go:registerparams
    func callee(p0 S1) {
    	if p0 != p0exp {
    		panic("bad p0")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 01 15:50:43 UTC 2021
    - 551 bytes
    - Viewed (0)
  7. test/fixedbugs/bug477.go

    // Test multiple identical unnamed structs with methods.  This caused
    // a compilation error with gccgo.
    
    package p
    
    type S1 struct{}
    
    func (s S1) M() {}
    
    type S2 struct {
    	F1 struct {
    		S1
    	}
    	F2 struct {
    		S1
    	}
    }
    
    type I interface {
    	M()
    }
    
    func F() {
    	var s2 S2
    	var i1 I = s2.F1
    	var i2 I = s2.F2
    	_, _ = i1, i2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 491 bytes
    - Viewed (0)
  8. test/fixedbugs/bug177.go

    package main
    
    import "reflect"
    
    type S1 struct{ i int }
    type S2 struct{ S1 }
    
    func main() {
    	typ := reflect.TypeOf(S2{})
    	f := typ.Field(0)
    	if f.Name != "S1" || f.Anonymous != true {
    		println("BUG: ", f.Name, f.Anonymous)
    		return
    	}
    	f, ok := typ.FieldByName("S1")
    	if !ok {
    		println("BUG: missing S1")
    		return
    	}
    	if !f.Anonymous {
    		println("BUG: S1 is not anonymous")
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 558 bytes
    - Viewed (0)
  9. test/fixedbugs/issue26043.go

    // j by 0, causing bounds check elimination to attempt
    // something%0, which panics (in the bug).
    
    package q
    
    func f() {
    	var s1 string
    	var b bool
    	if b {
    		b = !b
    		s1 += "a"
    	}
    
    	var s2 string
    	var i, j int
    	if (s1 <= "") || (s2 >= "") {
    		j = len(s1[:6])
    	} else {
    		i = len("b")
    	}
    
    	for j < 0 {
    		j += i
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 25 20:36:42 UTC 2018
    - 543 bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/eventbus/DispatcherTest.java

        assertThat(dispatchedSubscribers).containsExactly(i1, i2, i3, s1, s1, s1, s1, s2, s2, s2, s2);
      }
    
      public void testImmediateDispatcher() {
        dispatcher = Dispatcher.immediate();
        dispatcher.dispatch(1, integerSubscribers.iterator());
    
        assertThat(dispatchedSubscribers)
            .containsExactly(
                i1, s1, s2, // Each integer subscriber immediately dispatches to 2 string subscribers.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 27 15:41:25 UTC 2022
    - 5.6K bytes
    - Viewed (0)
Back to top