3 // Copyright 2017 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 // Issue 21687: cmd/compile evaluates x twice in "x op= y", which was
8 // detectable if evaluating y affects x.
12 func ptrs() (int, int) {
25 func slices() (int, int) {
38 func maps() (int, int) {
39 one := map[int]int{0: 1}
40 two := map[int]int{0: 2}
51 var tests = [...]func() (int, int){
59 for i, f := range tests {
60 if a, b := f(); a+b != 3 {