Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testUnnamed (0.1 sec)

  1. src/cmd/cgo/internal/testplugin/testdata/host/host.go

    	"plugin"
    	"strings"
    
    	"testplugin/common"
    )
    
    func init() {
    	common.X *= 5
    }
    
    // testUnnamed tests that two plugins built with .go files passed on
    // the command line do not have overlapping symbols. That is,
    // unnamed1.so/FuncInt and unnamed2.so/FuncInt should be distinct functions.
    func testUnnamed() {
    	p, err := plugin.Open("unnamed1.so")
    	if err != nil {
    		log.Fatalf(`plugin.Open("unnamed1.so"): %v`, err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 4.9K bytes
    - Viewed (0)
Back to top