test/fixedbugs/issue71852.go
raw| 1 | // compile |
| 2 | |
| 3 | // Copyright 2025 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 | package main |
| 8 | |
| 9 | import ( |
| 10 | "math" |
| 11 | ) |
| 12 | |
| 13 | func main() { |
| 14 | test(2) |
| 15 | } |
| 16 | |
| 17 | func test(i int) { |
| 18 | if i <= 0 { |
| 19 | return |
| 20 | } |
| 21 | |
| 22 | _ = math.Pow10(i + 2) |
| 23 | } |