]> Cypherpunks.ru repositories - gostls13.git/commit
test: add missing escape analysis test
authorTobias Klauser <tklauser@distanz.ch>
Thu, 10 Aug 2017 10:58:10 +0000 (12:58 +0200)
committerJosh Bleecher Snyder <josharian@gmail.com>
Fri, 11 Aug 2017 00:56:21 +0000 (00:56 +0000)
commitd7ec89c19846d8c1d89d510cd7634ae9de640ac0
tree494888fb3bb030d3928e011e2367270517649405
parent3b87defe4e3f865862cbe2e0627d94a8c456ae0c
test: add missing escape analysis test

https://golang.org/cl/37508 added an escape analysis test for #12397 to
escape2.go but missed to add it to escape2n.go. The comment at the top
of the former states that the latter should contain all the same tests
and the tests only differ in using -N to compile. Conform to this by
adding the function issue12397 to escape2n.go as well.

Also fix a whitespace difference in escape2.go, so the two files match
exactly (except for the comment at the top).

Change-Id: I3a09cf95169bf2150a25d6b4ec9e147265d36760
Reviewed-on: https://go-review.googlesource.com/54610
Reviewed-by: Avelino <t@avelino.xxx>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
test/escape2.go
test/escape2n.go