Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for addDotDotDot (0.08 sec)

  1. test/defer.go

    	if result != "9876543210" {
    		fmt.Printf("test1: bad defer result (should be 9876543210): %q\n", result)
    		panic("defer")
    	}
    }
    
    func addDotDotDot(v ...interface{}) { result += fmt.Sprint(v...) }
    
    func test2helper() {
    	for i := 0; i < 10; i++ {
    		defer addDotDotDot(i)
    	}
    }
    
    func test2() {
    	result = ""
    	test2helper()
    	if result != "9876543210" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 12 18:17:49 UTC 2013
    - 875 bytes
    - Viewed (0)
Back to top