commit | 8d4059f9b38736efaa413f876e8666e82e7d3940 | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Sat Sep 11 22:51:05 2010 -0700 |
committer | Ian Lance Taylor <iant@golang.org> | Sat Sep 11 22:51:05 2010 -0700 |
tree | 1f87e95f26cbe29a4cbc80cf2d537a4c805972d8 | |
parent | f47d403cb48f669fe4a6c4ba6bcaaa33eb2e51af [diff] |
test: Make gccgo believe that the variables can change. This test is supposed to test runtime behaviour. However, gccgo is smart enough to see that the variables are local to the package and that they never change. Add a function so that gccgo thinks that the variables can in fact vary, so that the test works at runtime as expected. R=rsc CC=golang-dev https://golang.org/cl/2178041