Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 175 for foo6 (0.1 sec)

  1. src/runtime/testdata/testprogcgo/cgo.go

    // Copyright 2015 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.
    
    package main
    
    /*
    void foo1(void) {}
    void foo2(void* p) {}
    */
    import "C"
    import (
    	"fmt"
    	"os"
    	"runtime"
    	"strconv"
    	"time"
    	"unsafe"
    )
    
    func init() {
    	register("CgoSignalDeadlock", CgoSignalDeadlock)
    	register("CgoTraceback", CgoTraceback)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 13:20:27 UTC 2017
    - 1.8K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/integTest/groovy/org/gradle/language/fixtures/app/DuplicateObjectiveCppBaseNamesTestApp.groovy

                #import "foo.h"
    
                void sayFoo1()
                {
                    NSFileHandle *stdout = [NSFileHandle fileHandleWithStandardOutput];
                    NSData *strData = [@"foo1" dataUsingEncoding: NSASCIIStringEncoding];
                    [stdout writeData: strData];
                }
            """),
                    sourceFile("objcpp/foo2", "foo.mm", """
                #import <iostream>
                #import "foo.h"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. tensorflow/cc/framework/cc_op_gen_test.cc

      ExpectHasSubstr(h_file_text, "class Foo {");
      ExpectDoesNotHaveSubstr(h_file_text, "class Foo1");
      ExpectDoesNotHaveSubstr(h_file_text, "class Foo2");
    
      // With ApiDef
      TF_ASSERT_OK(api_def_map.LoadApiDef(api_def));
      GenerateCcOpFiles(env, op_defs, api_def_map, &h_file_text,
                        &internal_h_file_text);
      ExpectHasSubstr(h_file_text, "class Foo1");
      ExpectHasSubstr(h_file_text, "typedef Foo1 Foo2");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 29 20:04:30 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  4. test/fixedbugs/bug441.go

    // in inlined functions.  Issue 3593.
    
    package main
    
    var did int
    
    func main() {
    	foo(side())
    	foo2(side(), side())
    	foo3(side(), side())
    	T.m1(T(side()))
    	T(1).m2(side())
    	const want = 7
    	if did != want {
    		println("BUG: missing", want-did, "calls")
    	}
    }
    
    func foo(_ int) {}
    func foo2(_, _ int) {}
    func foo3(int, int) {}
    type T int
    func (_ T) m1() {}
    func (t T) m2(_ int) {}
    
    func side() int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 641 bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/registry/rest/resttest/resttest.go

    	testLabels := map[string]string{"key": "value"}
    
    	foo3 := obj.DeepCopyObject()
    	t.setObjectMeta(foo3, "foo3")
    	foo4 := obj.DeepCopyObject()
    	foo4Meta := t.getObjectMetaOrFail(foo4)
    	foo4Meta.SetName("foo4")
    	foo4Meta.SetNamespace(genericapirequest.NamespaceValue(ctx))
    	foo4Meta.SetLabels(testLabels)
    
    	objs := ([]runtime.Object{foo3, foo4})
    
    	assignFn(objs)
    	filtered := []runtime.Object{objs[1]}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 55.8K bytes
    - Viewed (0)
  6. src/internal/types/testdata/fixedbugs/issue47747.go

    // 	var b Bar[t]
    // 	f.Foo(&b)
    // 	return t(b)
    // }
    
    // Test case 2 from issue
    
    // For now, a lone type parameter is not permitted as RHS in a type declaration (issue #45639).
    // type Fooer2[t any] interface {
    // 	Foo()
    // }
    // 
    // type Foo2[t any] t
    // 
    // func (f *Foo2[t]) Foo() {}
    // 
    // func _[t any](v t) {
    // 	var f = Foo2[t](v)
    // 	_ = Fooer2[t](&f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  7. pkg/kubelet/token/token_manager_test.go

    				{
    					name:      "foo-sa",
    					namespace: "foo-ns",
    					tr: &authenticationv1.TokenRequest{
    						Spec: authenticationv1.TokenRequestSpec{
    							Audiences:         []string{"foo1", "foo2"},
    							ExpirationSeconds: getInt64Point(2000),
    							BoundObjectRef: &authenticationv1.BoundObjectReference{
    								Kind: "pod",
    								Name: "foo-pod",
    								UID:  "foo-uid",
    							},
    						},
    					},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 04 00:16:47 UTC 2022
    - 16.2K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/attributes/DefaultAttributeSelectionSchemaTest.groovy

            def foo1 = Attribute.of("foo", String)
            def foo2 = Attribute.of("foo", String)
            def attr3 = Attribute.of("baz", String)
    
            given:
    
            ImmutableAttributes[] candidates = [candidate(ImmutableMap.of(attr3, "v2", foo1, "v2"))]
            AttributeContainer requested = attribute(attr3, "v3")
            attributesSchema.getAttributeByName("foo") >> foo2
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 01 20:17:51 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. pkg/kubelet/util/sliceutils/sliceutils_test.go

    			Size:        2,
    		},
    		{
    			ID:          "3",
    			RepoTags:    []string{"foo-tag31", "foo-tag32"},
    			RepoDigests: []string{"foo-rd31", "foo-rd32"},
    			Size:        3,
    		},
    		{
    			ID:          "4",
    			RepoTags:    []string{"foo-tag41", "foo-tag42"},
    			RepoDigests: []string{"foo-rd41", "foo-rd42"},
    			Size:        3,
    		},
    	}
    }
    
    func TestByImageSizeLen(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 13 08:27:42 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  10. src/internal/types/testdata/fixedbugs/issue39634.go

    // crash 7
    type foo7 interface { bar() }
    type x7[A any] struct{ foo7 }
    func main7() { var _ foo7 = x7[int]{} }
    
    // crash 8
    type foo8[A any] interface { ~A /* ERROR "cannot be a type parameter" */ }
    func bar8[A foo8[A]](a A) {}
    
    // crash 9
    type foo9[A any] interface { foo9 /* ERROR "invalid recursive type" */ [A] }
    func _() { var _ = new(foo9[int]) }
    
    // crash 12
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 18:13:11 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top