Skip to content

Commit 09e9a9e

Browse files
ianlancetaylorgopherbot
authored andcommitted
test: add test that caused gofrontend crash
For #59169 Change-Id: Id72ad9fe8b6e1d7cf64f972520ae8858f70c025a Reviewed-on: https://go-review.googlesource.com/c/go/+/478217 TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Cherry Mui <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Reviewed-by: Heschi Kreinick <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]>
1 parent 4a30716 commit 09e9a9e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/fixedbugs/issue59169.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// compile
2+
3+
// Copyright 2023 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.
6+
7+
// Issue 59169: caused gofrontend crash.
8+
9+
package p
10+
11+
func F(p *[]byte) {
12+
*(*[1]byte)(*p) = *(*[1]byte)((*p)[1:])
13+
}

0 commit comments

Comments
 (0)