reproducing Go issue #8806