Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for InlinedFakeTrue (0.09 sec)

  1. test/fixedbugs/issue4252.dir/main.go

    // Copyright 2012 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.
    
    package main
    
    import "./a"
    
    func main() {
    	if a.InlinedFakeTrue() {
    		panic("returned true was the real one")
    	}
    	if !a.InlinedFakeFalse() {
    		panic("returned false was the real one")
    	}
    	if a.InlinedFakeNil() == nil {
    		panic("returned nil was the real one")
    	}
    	a.Test()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 435 bytes
    - Viewed (0)
  2. test/fixedbugs/issue4252.dir/a.go

    	}
    	if !false {
    		panic("unexpected builtin false instead of redeclared one")
    	}
    	if len(array) != 42 {
    		println(len(array))
    		panic("unexpected call of builtin len")
    	}
    }
    
    func InlinedFakeTrue() error  { return error(true) }
    func InlinedFakeFalse() error { return error(false) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 807 bytes
    - Viewed (0)
Back to top