Commit eaa07044 authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

test: say that nilptr2.go requires 256+MB stack

Fixes #6161.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/13059043
parent 187b9c69
...@@ -87,8 +87,8 @@ var tests = []struct{ ...@@ -87,8 +87,8 @@ var tests = []struct{
{"&bigstructp.x[i]", func() { println(&bigstructp.x[i]) }}, {"&bigstructp.x[i]", func() { println(&bigstructp.x[i]) }},
{"bigstructp.x[9]", func() { println(bigstructp.x[9]) }}, {"bigstructp.x[9]", func() { println(bigstructp.x[9]) }},
{"&bigstructp.x[9]", func() { println(&bigstructp.x[9]) }}, {"&bigstructp.x[9]", func() { println(&bigstructp.x[9]) }},
{"bigstructp.x[200<<20]", func() { println(bigstructp.x[200<<20]) }}, {"bigstructp.x[100<<20]", func() { println(bigstructp.x[100<<20]) }},
{"&bigstructp.x[200<<20]", func() { println(&bigstructp.x[200<<20]) }}, {"&bigstructp.x[100<<20]", func() { println(&bigstructp.x[100<<20]) }},
{"bigstructp.l", func() { println(bigstructp.l) }}, {"bigstructp.l", func() { println(bigstructp.l) }},
{"&bigstructp.l", func() { println(&bigstructp.l) }}, {"&bigstructp.l", func() { println(&bigstructp.l) }},
{"m1.F()", func() { println(m1.F()) }}, {"m1.F()", func() { println(m1.F()) }},
...@@ -109,7 +109,7 @@ type BigStruct struct { ...@@ -109,7 +109,7 @@ type BigStruct struct {
i int i int
j float64 j float64
k string k string
x [256<<20]byte x [128<<20]byte
l []byte l []byte
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment