Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for FuncRecursive (0.12 sec)

  1. src/cmd/cgo/internal/testplugin/testdata/unnamed2/main.go

    // license that can be found in the LICENSE file.
    
    //go:build ignore
    
    package main
    
    // // No C code required.
    import "C"
    
    func FuncInt() int { return 2 }
    
    func FuncRecursive() X { return X{} }
    
    type Y struct {
    	X *X
    }
    type X struct {
    	Y Y
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 366 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testplugin/testdata/unnamed1/main.go

    package main
    
    // // No C code required.
    import "C"
    
    func FuncInt() int { return 1 }
    
    // Add a recursive type to check that type equality across plugins doesn't
    // crash. See https://golang.org/issues/19258
    func FuncRecursive() X { return X{} }
    
    type Y struct {
    	X *X
    }
    type X struct {
    	Y Y
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 487 bytes
    - Viewed (0)
Back to top