1// errorcheck
2
3// Copyright 2017 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 20227: panic while constructing constant "1i/1e-600000000"
8
9package p
10
11var _ = 1 / 1e-600000000i  // ERROR "division by zero"
12var _ = 1i / 1e-600000000  // ERROR "division by zero"
13var _ = 1i / 1e-600000000i // ERROR "division by zero"
14
15var _ = 1 / (1e-600000000 + 1e-600000000i)  // ERROR "division by zero"
16var _ = 1i / (1e-600000000 + 1e-600000000i) // ERROR "division by zero"
17