Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testDeadStorePanic_ssa (0.3 sec)

  1. src/cmd/compile/internal/test/testdata/loadstore_test.go

    		t.Errorf("testExtStore failed.  want = %d, got = %d", start, got)
    	}
    }
    
    var b int
    
    // testDeadStorePanic_ssa ensures that we don't optimize away stores
    // that could be read by after recover().  Modeled after fixedbugs/issue1304.
    //
    //go:noinline
    func testDeadStorePanic_ssa(a int) (r int) {
    	defer func() {
    		recover()
    		r = a
    	}()
    	a = 2      // store
    	b := a - a // optimized to zero
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 4.8K bytes
    - Viewed (0)
Back to top