Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for Func1 (0.18 sec)

  1. test/func1.go

    Robert Griesemer <******@****.***> 1607048150 -0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 04 21:22:23 UTC 2020
    - 445 bytes
    - Viewed (0)
  2. test/typeparam/issue50485.dir/a.go

    	if r.IsDefined() {
    		return r
    	}
    	t := f()
    	return Option[T]{&t}
    }
    
    type Func1[A1, R any] func(a1 A1) R
    
    type Func2[A1, A2, R any] func(a1 A1, a2 A2) R
    
    func (r Func2[A1, A2, R]) Curried() Func1[A1, Func1[A2, R]] {
    	return func(a1 A1) Func1[A2, R] {
    		return Func1[A2, R](func(a2 A2) R {
    			return r(a1, a2)
    		})
    	}
    }
    
    type HList interface {
    	sealed()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/sourceset/SourceSetCompileDependenciesIntegrationTest.groovy

            file("src/main/headers/funcs.h") << """
                int func1();
                int func2();
    """
            file("src/main/cpp/main.cpp") << """
                #include <iostream>
                #include "funcs.h"
                int main () {
                    std::cout << func1() << func2() << std::endl;
                    return 0;
                }
    """
            file("src/main/cpp/func1.cpp") << """
                #include "lib.h"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. src/go/doc/example_test.go

    	Type1_foo int
    	type2     int
    
    	Embed struct { Type1 }
    	Uembed struct { type2 }
    )
    
    func Func1()     {}
    func Func1_Foo() {}
    func Func1_foo() {}
    func func2()     {}
    
    func (Type1) Func1() {}
    func (Type1) Func1_Foo() {}
    func (Type1) Func1_foo() {}
    func (Type1) func2() {}
    
    func (type2) Func1() {}
    
    type (
    	Conflict          int
    	Conflict_Conflict int
    	Conflict_conflict int
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 16:17:51 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  5. test/fixedbugs/issue54159.go

    // license that can be found in the LICENSE file.
    
    package main
    
    func run() { // ERROR "cannot inline run: recursive"
    	f := func() { // ERROR "can inline run.func1 with cost .* as:.*" "func literal does not escape"
    		g() // ERROR "inlining call to g"
    	}
    	f() // ERROR "inlining call to run.func1" "inlining call to g"
    	run()
    }
    
    func g() { // ERROR "can inline g with cost .* as:.*"
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jan 28 04:29:02 UTC 2023
    - 586 bytes
    - Viewed (0)
  6. test/codegen/issue60324.go

    	g(2)()
    
    	// amd64:"LEAQ\tcommand-line-arguments\\.main\\.h\\.func1"
    	h(3)()
    
    	// amd64:"LEAQ\tcommand-line-arguments\\.main\\.f\\.g\\.h\\.func4"
    	f(4)()
    }
    
    func f(x int) func() {
    	// amd64:"LEAQ\tcommand-line-arguments\\.f\\.g\\.h\\.func1"
    	return g(x)
    }
    
    func g(x int) func() {
    	// amd64:"LEAQ\tcommand-line-arguments\\.g\\.h\\.func1"
    	return h(x)
    }
    
    func h(x int) func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 22:47:15 UTC 2023
    - 805 bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testsanitizers/testdata/tsan3.go

    /*
    #cgo CFLAGS: -fsanitize=thread
    #cgo LDFLAGS: -fsanitize=thread
    
    int Func1() {
    	return 0;
    }
    
    void Func2(int x) {
    	(void)x;
    }
    */
    import "C"
    
    func main() {
    	const N = 10000
    	done := make(chan bool, N)
    	for i := 0; i < N; i++ {
    		go func() {
    			C.Func1()
    			done <- true
    		}()
    		go func() {
    			C.Func2(0)
    			done <- true
    		}()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 662 bytes
    - Viewed (0)
  8. test/fixedbugs/issue4167.go

    package main
    
    type pa []int
    
    type p int
    
    func (this *pa) func1() (v *p, c int) {
    	for _ = range *this {
    		c++
    	}
    	v = (*p)(&c)
    	return
    }
    
    func (this *pa) func2() p {
    	return (*p).func3(this.func1())
    }
    
    func (this *p) func3(f int) p {
    	return *this
    }
    
    func (this *pa) func2dots() p {
    	return (*p).func3(this.func1())
    }
    
    func (this *p) func3dots(f ...int) p {
    	return *this
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 876 bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/sourceset/SourceSetLinkDependenciesIntegrationTest.groovy

            file("src/main/headers/funcs.h") << """
                int func1();
                int func2();
    """
            file("src/main/cpp/main.cpp") << """
                #include <iostream>
                #include "funcs.h"
                int main () {
                    std::cout << func1() << func2() << std::endl;
                    return 0;
                }
    """
            file("src/main/cpp1/func1.cpp") << """
                int getOne();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4K bytes
    - Viewed (0)
  10. test/escape4.go

    func f1() {
    	p = alloc(2) // ERROR "inlining call to alloc" "moved to heap: x"
    
    	// Escape analysis used to miss inlined code in closures.
    
    	func() { // ERROR "can inline f1.func1"
    		p = alloc(3) // ERROR "inlining call to alloc"
    	}() // ERROR "inlining call to f1.func1" "inlining call to alloc" "moved to heap: x"
    
    	f = func() { // ERROR "func literal escapes to heap" "can inline f1.func2"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 19:43:26 UTC 2023
    - 1.4K bytes
    - Viewed (0)
Back to top