From 04e993f953060851adb604c6ccc7c96ef89b8c8d Mon Sep 17 00:00:00 2001 From: Alberto Donizetti Date: Thu, 29 Mar 2018 14:35:57 +0200 Subject: [PATCH] test: update list of escape reasons The escape_because.go test file (which tests the "because" escape explainations printed by `-m -m`) cointains a machine-generated list of all the escape reasons seen in the escape tests. The list appears to be outdated; moreove a new escape reason was added in CL 102895. This change re-generates the list. Change-Id: Idc721c6bbfe9516895b5cf1e6d09b77deda5a3dd Reviewed-on: https://go-review.googlesource.com/103375 Reviewed-by: David Chase Run-TryBot: Alberto Donizetti TryBot-Result: Gobot Gobot --- test/escape_because.go | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/test/escape_because.go b/test/escape_because.go index a8423a59cc..c7548fc677 100644 --- a/test/escape_because.go +++ b/test/escape_because.go @@ -141,51 +141,40 @@ appended to slice appendee slice arg to ... arg to recursive call -array literal element array-element-equals -assign-pair -assign-pair-dot-type -assign-pair-func-call +array literal element assigned assigned to top level variable -call part +assign-pair-dot-type +assign-pair-func-call captured by a closure -closure-var -converted -copied slice -defer func -defer func ... -defer func arg +captured by called closure dot -dot of pointer dot-equals +dot of pointer fixed-array-index-of -go func -go func ... go func arg indirection interface-converted key of map put map literal key map literal value +non-constant size +panic parameter to indirect call +passed-to-and-returned-from-call passed to call[argument content escapes] passed to call[argument escapes] -passed-to-and-returned-from-call pointer literal -range range-deref receiver in indirect call return returned from recursive function -send -slice slice-element-equals slice-literal-element star-dot-equals star-equals struct literal element -switch case too large for stack value of map put */ @@ -198,7 +187,6 @@ assign-pair-mapr assign-pair-receive call receiver map index -panic pointer literal [assign] slice literal element */