Skip to content

Commit

Permalink
test: add test that caused gofrontend crash
Browse files Browse the repository at this point in the history
For #59169

Change-Id: Id72ad9fe8b6e1d7cf64f972520ae8858f70c025a
Reviewed-on: https://go-review.googlesource.com/c/go/+/478217
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
  • Loading branch information
ianlancetaylor authored and pull[bot] committed Oct 4, 2023
1 parent 1b97014 commit ba53fbb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/fixedbugs/issue59169.go
@@ -0,0 +1,13 @@
// compile

// Copyright 2023 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Issue 59169: caused gofrontend crash.

package p

func F(p *[]byte) {
*(*[1]byte)(*p) = *(*[1]byte)((*p)[1:])
}

0 comments on commit ba53fbb

Please sign in to comment.