Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 385 for S1 (0.34 sec)

  1. test/fixedbugs/issue6295.dir/p1.go

    // license that can be found in the LICENSE file.
    
    package p1
    
    import "./p0"
    
    type T1 interface {
    	p0.T0
    	m1()
    }
    
    type S1 struct {
    	p0.S0
    }
    
    func (S1) m1() {}
    
    func NewT0() p0.T0 {
    	return S1{}
    }
    
    func NewT1() T1 {
    	return S1{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 339 bytes
    - Viewed (0)
  2. test/fixedbugs/issue23522.go

    	s := f
    	f = math.Copysign(f, 1)
    	u := math.Floor(f)
    	return &S{
    		u: int64(math.Copysign(u, s)),
    		n: int32(math.Copysign((f-u)*1e9, s)),
    	}
    }
    
    func main() {
    	s1 := F1(-1)
    	s2 := F2(-1)
    	if *s1 != *s2 {
    		println("F1:", s1.u, s1.n)
    		println("F2:", s2.u, s2.n)
    		panic("different")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 21:51:55 UTC 2018
    - 724 bytes
    - Viewed (0)
  3. test/fixedbugs/gcc65755.go

    package main
    
    import "reflect"
    
    type S1 struct{}
    
    func (S1) Fix() string {
    	type s struct {
    		f int
    	}
    	return reflect.TypeOf(s{}).Field(0).Name
    }
    
    type S2 struct{}
    
    func (S2) Fix() string {
    	type s struct {
    		g bool
    	}
    	return reflect.TypeOf(s{}).Field(0).Name
    }
    
    func main() {
    	f1 := S1{}.Fix()
    	f2 := S2{}.Fix()
    	if f1 != "f" || f2 != "g" {
    		panic(f1 + f2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 605 bytes
    - Viewed (0)
  4. test/interface/struct.go

    		fail++
    	}
    }
    
    type I1 interface { Get() int; Put(int) }
    
    type S1 struct { i int }
    func (p S1) Get() int { return p.i }
    func (p S1) Put(i int) { p.i = i }
    
    func f1() {
    	s := S1{1}
    	var i I1 = s
    	i.Put(2)
    	check(i.Get() == 1, "f1 i")
    	check(s.i == 1, "f1 s")
    }
    
    func f2() {
    	s := S1{1}
    	var i I1 = &s
    	i.Put(2)
    	check(i.Get() == 1, "f2 i")
    	check(s.i == 1, "f2 s")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 06:33:41 UTC 2012
    - 2.4K bytes
    - Viewed (0)
  5. pkg/kubelet/configmap/configmap_manager_test.go

    	}
    
    	// Create a pod with some configMaps.
    	s1 := configMapsToAttach{
    		containerEnvConfigMaps: []envConfigMaps{
    			{envVarNames: []string{"s1"}},
    			{envFromNames: []string{"s20"}},
    		},
    		volumes: []string{"s2"},
    	}
    	manager.RegisterPod(podWithConfigMaps("ns1", "name1", s1))
    	manager.RegisterPod(podWithConfigMaps("ns2", "name2", s1))
    	// Update the pod with a different configMaps.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 10 10:20:09 UTC 2021
    - 4.8K bytes
    - Viewed (0)
  6. tensorflow/c/ops_test.cc

      shape_inference::ShapeHandle s1;
    
      TF_Status* status = TF_NewStatus();
      TF_ShapeInferenceContextWithRankAtMost(C_CTX(&c), C_SHP(&in0), 3, C_SHP(&s1),
                                             status);
      EXPECT_EQ("[10,20,30]", c.DebugString(s1));
      EXPECT_EQ(TF_OK, TF_GetCode(status));
    
      TF_ShapeInferenceContextWithRankAtLeast(C_CTX(&c), C_SHP(&in0), 3, C_SHP(&s1),
                                              status);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 12.6K bytes
    - Viewed (0)
  7. test/escape_struct_param1.go

    func tUPiSPa() {
    	s1 := "ant"
    	s2 := "bat" // ERROR "moved to heap: s2$"
    	s3 := "cat" // ERROR "moved to heap: s3$"
    	s4 := "dog" // ERROR "moved to heap: s4$"
    	s5 := "emu" // ERROR "moved to heap: s5$"
    	s6 := "fox" // ERROR "moved to heap: s6$"
    	ps2 := &s2
    	ps4 := &s4 // ERROR "moved to heap: ps4$"
    	ps6 := &s6 // ERROR "moved to heap: ps6$"
    	u1 := U{&s1, &ps2}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 12 08:31:49 UTC 2020
    - 8.9K bytes
    - Viewed (0)
  8. test/escape_struct_param2.go

    func tUPiSPa() {
    	s1 := "ant"
    	s2 := "bat" // ERROR "moved to heap: s2$"
    	s3 := "cat" // ERROR "moved to heap: s3$"
    	s4 := "dog" // ERROR "moved to heap: s4$"
    	s5 := "emu" // ERROR "moved to heap: s5$"
    	s6 := "fox" // ERROR "moved to heap: s6$"
    	ps2 := &s2
    	ps4 := &s4 // ERROR "moved to heap: ps4$"
    	ps6 := &s6 // ERROR "moved to heap: ps6$"
    	u1 := U{&s1, &ps2}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 12 08:31:49 UTC 2020
    - 8.9K bytes
    - Viewed (0)
  9. test/fixedbugs/issue61992.go

    // license that can be found in the LICENSE file.
    
    // Issue 61992, inconsistent 'mem' juggling in expandCalls
    
    package p
    
    type S1 struct {
    	a, b, c []int
    	i       int
    }
    
    type S2 struct {
    	a, b []int
    	m    map[int]int
    }
    
    func F(i int, f func(S1, S2, int) int) int {
    	return f(
    		S1{},
    		S2{m: map[int]int{}},
    		1<<i)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 15:40:52 UTC 2023
    - 439 bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/mylasta/action/FessUserBean.java

        }
    
        public boolean hasRoles(final String[] acceptedRoles) {
            return stream(user.getRoleNames())
                    .get(stream -> stream.anyMatch(s1 -> stream(acceptedRoles).get(s3 -> s3.anyMatch(s2 -> s2.equals(s1)))));
        }
    
        public boolean hasGroup(final String group) {
            return stream(user.getGroupNames()).get(stream -> stream.anyMatch(s -> s.equals(group)));
        }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top