Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Go2 (0.04 sec)

  1. src/go/parser/testdata/tparams.go2

    Robert Griesemer <******@****.***> 1698787325 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 12:56:53 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. src/go/parser/testdata/typeset.go2

    Robert Griesemer <******@****.***> 1698787325 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 12:56:53 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. src/go/parser/testdata/issue49175.go2

    Robert Griesemer <******@****.***> 1698787325 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 12:56:53 UTC 2023
    - 325 bytes
    - Viewed (0)
  4. src/go/parser/testdata/resolution/typeparams.go2

    Robert Griesemer <******@****.***> 1698787325 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 12:56:53 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testsanitizers/testdata/msan5.go

    /*
    #include <stdlib.h>
    
    extern void Go1(int*);
    extern void Go2(char*);
    
    // Use weak as a hack to permit defining a function even though we use export.
    void C1() __attribute__ ((weak));
    void C2() __attribute__ ((weak));
    
    void C1() {
    	int i;
    	Go1(&i);
    	if (i != 42) {
    		abort();
    	}
    }
    
    void C2() {
    	char a[2];
    	a[1] = 42;
    	Go2(a);
    	if (a[0] != 42) {
    		abort();
    	}
    }
    */
    import "C"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 904 bytes
    - Viewed (0)
  6. src/cmd/internal/archive/archive_test.go

    			go1obj := filepath.Join(buildDir, "go1.o")
    			go2obj := filepath.Join(buildDir, "go2.o")
    			goarchive := filepath.Join(buildDir, "go.a")
    			cgoarchive := ""
    
    			gotool, err := testenv.GoTool()
    			if err != nil {
    				return err
    			}
    
    			go1src := filepath.Join("testdata", "go1.go")
    			go2src := filepath.Join("testdata", "go2.go")
    
    			importcfgfile := filepath.Join(buildDir, "importcfg")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 02 19:27:33 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  7. test/typeparam/builtins.go

    // license that can be found in the LICENSE file.
    
    // This file tests built-in calls on generic types.
    
    // derived and expanded from cmd/compile/internal/types2/testdata/check/builtins.go2
    
    package builtins
    
    // close
    
    type C0 interface{ int }
    type C1 interface{ chan int }
    type C2 interface{ chan int | <-chan int }
    type C3 interface{ chan int | chan float32 }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 09:04:48 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  8. src/internal/types/testdata/check/typeinst1.go

    // Parameterized types with methods
    
    func (l List[E]) Head() (_ E, _ bool) {
    	if len(l) > 0 {
    		return l[0], true
    	}
    	return
    }
    
    // A test case for instantiating types with other types (extracted from map.go2)
    
    type Pair[K any] struct {
    	key K
    }
    
    type Receiver[T any] struct {
    	values T
    }
    
    type Iterator[K any] struct {
    	r Receiver[Pair[K]]
    }
    
    func Values [T any] (r Receiver[T]) T {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  9. src/internal/types/testdata/check/map1.go

    // Copyright 2019 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.
    
    // This file is like map.go2, but instead if importing chans, it contains
    // the necessary functionality at the end of the file.
    
    // Package orderedmap provides an ordered map, implemented as a binary tree.
    package orderedmap
    
    // Map is an ordered map.
    type Map[K, V any] struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  10. src/go/parser/error_test.go

    		t.Fatal(err)
    	}
    	for _, d := range list {
    		name := d.Name()
    		t.Run(name, func(t *testing.T) {
    			if !d.IsDir() && !strings.HasPrefix(name, ".") && (strings.HasSuffix(name, ".src") || strings.HasSuffix(name, ".go2")) {
    				mode := DeclarationErrors | AllErrors
    				if *traceErrs {
    					mode |= Trace
    				}
    				checkErrors(t, filepath.Join(testdata, name), nil, mode, true)
    			}
    		})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 19:47:49 UTC 2022
    - 5.9K bytes
    - Viewed (0)
Back to top