Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
3577398f
Commit
3577398f
authored
May 22, 2013
by
Rémy Oudompheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: add test for issue 3888.
R=golang-dev, bradfitz CC=golang-dev
https://golang.org/cl/9676043
parent
1beb7919
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
escape2.go
test/escape2.go
+12
-0
No files found.
test/escape2.go
View file @
3577398f
...
@@ -1325,3 +1325,15 @@ func foo142() {
...
@@ -1325,3 +1325,15 @@ func foo142() {
t
:=
new
(
Tm
)
// ERROR "escapes to heap"
t
:=
new
(
Tm
)
// ERROR "escapes to heap"
gf
=
t
.
M
// ERROR "t.M escapes to heap"
gf
=
t
.
M
// ERROR "t.M escapes to heap"
}
}
// issue 3888.
func
foo143
()
{
for
i
:=
0
;
i
<
1000
;
i
++
{
func
()
{
// ERROR "func literal does not escape"
for
i
:=
0
;
i
<
1
;
i
++
{
var
t
Tm
t
.
M
()
// ERROR "t does not escape"
}
}()
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment