]> Cypherpunks.ru repositories - gostls13.git/blobdiff - test/escape_unsafe.go
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / test / escape_unsafe.go
index cec6674a142374c7c9f6d9c867048f475d866ff2..56c536fdfb4c99f320b87e48fbd62c82828cfb72 100644 (file)
@@ -65,5 +65,5 @@ func toSliceData(s *[]int, p unsafe.Pointer) { // ERROR "s does not escape" "lea
 }
 
 func toStringData(s *string, p unsafe.Pointer) { // ERROR "s does not escape" "leaking param: p$"
-       (*reflect.SliceHeader)(unsafe.Pointer(s)).Data = uintptr(p)
+       (*reflect.StringHeader)(unsafe.Pointer(s)).Data = uintptr(p)
 }