github.com/ks888/tgo@v0.0.0-20190130135156-80bf89407292/testutils/testdata/specialFuncs.go (about) 1 package main 2 3 import ( 4 "reflect" 5 ) 6 7 // reflect.DeepEqual calls runtime.duffzero, which directly jumps to the middle of the function. 8 func checkReflectDeepEqual(arr1, arr2 []int) bool { 9 return reflect.DeepEqual(arr1, arr2) 10 } 11 12 func main() { 13 checkReflectDeepEqual([]int{1}, []int{2}) 14 }