Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Addrtaken (0.93 sec)

  1. test/codegen/clobberdead.go

    	// arm64:`MOVW\tR27, command-line-arguments\.x`, `MOVW\tR27, command-line-arguments\.y`, -`MOVW\tR27, command-line-arguments\.z`
    	x, y, z := p1, p2, p3
    	addrTaken(&z)
    	// x is dead at the call (the value of x is loaded before the CALL), y is not
    	// amd64:`MOVL\t\$3735936685, command-line-arguments\.x`, -`MOVL\t\$3735936685, command-line-arguments\.y`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. test/typeparam/issue49659b.go

    // run
    
    // Copyright 2021 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.
    
    // Testing that AddrTaken logic doesn't cause problems for function instantiations
    
    package main
    
    type A[T interface{ []int | [5]int }] struct {
    	val T
    }
    
    //go:noinline
    func (a A[T]) F() {
    	_ = &a.val[2]
    }
    
    func main() {
    	var x A[[]int]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 492 bytes
    - Viewed (0)
  3. test/fixedbugs/issue20250.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 20250: liveness differed with concurrent compilation
    // due to propagation of addrtaken to outer variables for
    // closure variables.
    
    package p
    
    type T struct {
    	s [2]string
    }
    
    func f(a T) { // ERROR "live at entry to f: a$"
    	var e interface{} // ERROR "stack object e interface \{\}$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 727 bytes
    - Viewed (0)
  4. test/live2.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // liveness tests with inlining ENABLED
    // see also live.go.
    
    package main
    
    // issue 8142: lost 'addrtaken' bit on inlined variables.
    
    func printnl()
    
    //go:noescape
    func useT40(*T40)
    
    type T40 struct {
    	m map[int]int
    }
    
    func newT40() *T40 {
    	ret := T40{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 23:29:33 UTC 2023
    - 953 bytes
    - Viewed (0)
Back to top