test/fixedbugs/issue68734.go
raw| 1 | // compile |
| 2 | |
| 3 | // Copyright 2024 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 | // The gofrontend had a bug handling panic of an untyped constant expression. |
| 8 | |
| 9 | package issue68734 |
| 10 | |
| 11 | func F1() { |
| 12 | panic(1 + 2) |
| 13 | } |
| 14 | |
| 15 | func F2() { |
| 16 | panic("a" + "b") |
| 17 | } |