OSDN Git Service

json: fix test when rand returns 0.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Jul 2011 18:38:24 +0000 (18:38 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Jul 2011 18:38:24 +0000 (18:38 +0000)
commit1938872f7ac80c02d54014b93c18831f5ca4faec
tree19cfda924d3515d74553153864902b4c267e10bd
parentbf9d7107e2355535522008954b906784225b73dc
json: fix test when rand returns 0.

Fixes using gccgo when optimizing, which changes the order of
calls to rand.  Same patch proposed upstream.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175927 138bc75d-0d04-0410-961f-82ee72b054a4
libgo/go/json/scanner_test.go