]> Cypherpunks repositories - gostls13.git/commit
test: Make gccgo believe that the variables can change.
authorIan Lance Taylor <iant@golang.org>
Sun, 12 Sep 2010 05:51:05 +0000 (22:51 -0700)
committerIan Lance Taylor <iant@golang.org>
Sun, 12 Sep 2010 05:51:05 +0000 (22:51 -0700)
commit8d4059f9b38736efaa413f876e8666e82e7d3940
tree1f87e95f26cbe29a4cbc80cf2d537a4c805972d8
parentf47d403cb48f669fe4a6c4ba6bcaaa33eb2e51af
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
test/zerodivide.go