Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for foo$i (1.21 sec)

  1. test/fixedbugs/issue32680.go

    package main
    
    var foo = []byte{105, 57, 172, 152}
    
    func main() {
    	for i := 0; i < len(foo); i += 4 {
    		// Requires inlining and non-constant i
    		// Note the bug/fix also apply to different widths, but was unable to reproduce for those.
    		println(readLittleEndian32_2(foo[i], foo[i+1], foo[i+2], foo[i+3]))
    	}
    }
    
    func readLittleEndian32_2(a, b, c, d byte) uint32 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 20 16:56:47 UTC 2019
    - 687 bytes
    - Viewed (0)
  2. testing/soak/src/integTest/groovy/org/gradle/launcher/daemon/ClassLoaderLeakAvoidanceSoakTest.groovy

                        println new Foo0()
                    }
                }
            """
    
            expect:
            for(int i = 0; i < 35; i++) {
                buildFile.text = buildFile.text.replace("Foo$i", "Foo${i + 1}")
                executer.withBuildJvmOpts("-Xmx256m", "-XX:+HeapDumpOnOutOfMemoryError")
                assert succeeds("myTask")
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. test/fixedbugs/bug388.go

    	println(i, runtime.UintType) // GCCGO_ERROR "undefined identifier"
    }
    
    func qux() {
    	var main.i	// ERROR "unexpected [.]|expected type"
    	println(main.i)
    }
    
    func corge() {
    	var foo.i int  // ERROR "unexpected [.]|expected type"
    	println(foo.i)
    }
    
    func main() {
    	foo(42,43)
    	bar(1969)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 11 02:26:58 UTC 2022
    - 636 bytes
    - Viewed (0)
  4. testing/performance/src/templates/task-creation/build.gradle

     */
    
    @groovy.transform.CompileStatic
    void createTasks(Project p, int iterations) {
        for (int i=0; i<iterations; i++) {
            p.task("foo\$i", type: Copy)
        }
    }
    
    if (tasks.metaClass.respondsTo(tasks, "register")) {
        for (int i=0; i<$taskCount; i++) {
           project.tasks.register("foo\$i", Copy)
        }
    } else {
        createTasks(project, $taskCount)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 974 bytes
    - Viewed (0)
  5. src/cmd/go/internal/work/security_test.go

    	{"-march=@dawn"},
    	{"-march=-dawn"},
    	{"-mcmodel=@model"},
    	{"-mlarge-data-threshold=@12"},
    	{"-std=@c99"},
    	{"-std=-c99"},
    	{"-x@c"},
    	{"-x-c"},
    	{"-D", "@foo"},
    	{"-D", "-foo"},
    	{"-I", "@foo"},
    	{"-I", "-foo"},
    	{"-I", "=@obj"},
    	{"-include", "@foo"},
    	{"-framework", "-Caffeine"},
    	{"-framework", "@Home"},
    	{"-x", "--c"},
    	{"-x", "@obj"},
    }
    
    func TestCheckCompilerFlags(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:47:34 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. analysis/analysis-api/testData/components/diagnosticsProvider/diagnostics/typeMismatches.kt

    val i: Int = ""
    
    fun foo(s: String): String {
        foo(i)
        return 1
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Dec 09 12:56:52 UTC 2021
    - 71 bytes
    - Viewed (0)
  7. platforms/ide/tooling-api-builders/src/test/groovy/org/gradle/tooling/internal/provider/runner/AggregatingProblemConsumerTest.groovy

            def emitter = new AggregatingProblemConsumer(eventConsumer, { new OperationIdentifier(1) })
    
    
            when:
            for (int i = 0; i < 3; i++) {
                emitter.emit(createMockProblem("foo$i"))
            }
    
            then:
            3 * eventConsumer.progress(_)
        }
    
        def "emit summary if there are deduplicate events"() {
            given:
            def eventConsumer = Mock(ProgressEventConsumer)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 09 09:50:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. test/typeparam/issue50481b.dir/main.go

    package main
    
    import (
    	"./b"
    	"fmt"
    )
    
    func main() {
    	foo := &b.Foo[string, int]{
    		ValueA: "i am a string",
    		ValueB: 123,
    	}
    	if got, want := fmt.Sprintln(foo), "i am a string 123\n"; got != want {
    		panic(fmt.Sprintf("got %s, want %s", got, want))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 559 bytes
    - Viewed (0)
  9. test/typeparam/issue50419.go

    // that has multiple blank type params.
    
    package main
    
    import (
    	"fmt"
    )
    
    func main() {
    	foo := &Foo[string, int]{
    		valueA: "i am a string",
    		valueB: 123,
    	}
    	if got, want := fmt.Sprintln(foo), "i am a string 123\n"; got != want {
    		panic(fmt.Sprintf("got %s, want %s", got, want))
    	}
    }
    
    type Foo[T1 any, T2 any] struct {
    	valueA T1
    	valueB T2
    }
    
    func (f *Foo[_, _]) String() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 689 bytes
    - Viewed (0)
  10. test/typeparam/eface.go

    type I[T any] interface {
    	foo()
    }
    
    type myint int
    
    func (x myint) foo() {}
    
    //go:noinline
    func h[T any](x I[T]) interface{ foo() } {
    	return x
    }
    
    //go:noinline
    func i[T any](x interface{ foo() }) I[T] {
    	return x
    }
    
    func main() {
    	if f[int](1) != 1 {
    		println("test 1 failed")
    	}
    	if f[int](2) != (interface{})(2) {
    		println("test 2 failed")
    	}
    	if g[int](3) != 3 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.1K bytes
    - Viewed (0)
Back to top