aboutsummaryrefslogtreecommitdiff
path: root/test/codegen/slices.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/codegen/slices.go')
-rw-r--r--test/codegen/slices.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/codegen/slices.go b/test/codegen/slices.go
index 1c48b38047..32561b2235 100644
--- a/test/codegen/slices.go
+++ b/test/codegen/slices.go
@@ -456,3 +456,15 @@ func SlicePut(a []byte, c uint8) []byte {
a = a[1:]
return a
}
+
+func Issue61730() {
+ var x int
+ // amd64:-"MOVQ .*stmp_"
+ _ = [...][]*int{
+ {&x},
+ nil,
+ nil,
+ nil,
+ nil,
+ }
+}