• Russ Cox's avatar
    insert ODCL in type switch case. · 0417aafe
    Russ Cox authored
    needed for heap allocation if variable escapes.
    
    package main
    func main(){
    	var i interface{} = 42;
    	switch v := i.(type) {
    	case int:
    		println(&v, v);
    	}
    }
    
    R=ken
    OCL=31245
    CL=31245
    0417aafe
Name
Last commit
Last update
..
Makefile Loading commit data...
align.c Loading commit data...
bits.c Loading commit data...
builtin.c.boot Loading commit data...
const.c Loading commit data...
dcl.c Loading commit data...
export.c Loading commit data...
gen.c Loading commit data...
go.h Loading commit data...
go.y Loading commit data...
lex.c Loading commit data...
mkbuiltin Loading commit data...
mkbuiltin1.c Loading commit data...
mparith1.c Loading commit data...
mparith2.c Loading commit data...
mparith3.c Loading commit data...
obj.c Loading commit data...
sinit.c Loading commit data...
subr.c Loading commit data...
swt.c Loading commit data...
sys.go Loading commit data...
unsafe.go Loading commit data...
walk.c Loading commit data...