Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for f42 (0.02 sec)

  1. src/cmd/cgo/internal/testerrors/ptr_test.go

    		fail:    false,
    	},
    	{
    		name:    "slicedata",
    		c:       `void f42(void* p) {}`,
    		imports: []string{"unsafe"},
    		body:    `s := []*byte{nil, new(byte)}; C.f42(unsafe.Pointer(unsafe.SliceData(s)))`,
    		fail:    true,
    	},
    	{
    		name:    "slicedata2",
    		c:       `void f43(void* p) {}`,
    		imports: []string{"unsafe"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:49 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  2. test/live.go

    	r = p
    	defer func() {
    		recover()
    	}()
    	printint(0) // ERROR "live at call to printint: .autotmp_[0-9]+ q r$"
    	r = q
    	return // ERROR "live at call to f41.func1: .autotmp_[0-9]+ r$"
    }
    
    func f42() {
    	var p, q, r int
    	f43([]*int{&p, &q, &r}) // ERROR "stack object .autotmp_[0-9]+ \[3\]\*int$"
    	f43([]*int{&p, &r, &q})
    	f43([]*int{&q, &p, &r})
    }
    
    //go:noescape
    func f43(a []*int)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 18K bytes
    - Viewed (0)
  3. test/live_regabi.go

    	r = p
    	defer func() {
    		recover()
    	}()
    	printint(0) // ERROR "live at call to printint: .autotmp_[0-9]+ q r$"
    	r = q
    	return // ERROR "live at call to f41.func1: .autotmp_[0-9]+ r$"
    }
    
    func f42() {
    	var p, q, r int
    	f43([]*int{&p, &q, &r}) // ERROR "stack object .autotmp_[0-9]+ \[3\]\*int$"
    	f43([]*int{&p, &r, &q})
    	f43([]*int{&q, &p, &r})
    }
    
    //go:noescape
    func f43(a []*int)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 18.4K bytes
    - Viewed (0)
Back to top