3 // Copyright 2015 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // Check that these do not use "by value" capturing,
8 // because changes are made to the value during the closure.
41 for z.a[1] = 1; i < 10; i++ {
56 tmp = w // force capture of w, but do not write to it yet
60 w++ // write in a nested closure