| 1 |
// +build go1.15 |
| 2 |
|
| 3 |
package pkg |
| 4 |
|
| 5 |
import "strconv" |
| 6 |
|
| 7 |
func fn() { |
| 8 |
strconv.ParseComplex("", 32) //@ diag(`'bitSize' argument is invalid, must be either 64 or 128`) |
| 9 |
strconv.ParseComplex("", 64) |
| 10 |
strconv.ParseComplex("", 128) |
| 11 |
strconv.ParseComplex("", 256) //@ diag(`'bitSize' argument is invalid, must be either 64 or 128`) |
| 12 |
|
| 13 |
strconv.FormatComplex(0, 'e', 0, 32) //@ diag(`'bitSize' argument is invalid, must be either 64 or 128`) |
| 14 |
strconv.FormatComplex(0, 'e', 0, 64) |
| 15 |
strconv.FormatComplex(0, 'e', 0, 128) |
| 16 |
strconv.FormatComplex(0, 'e', 0, 256) //@ diag(`'bitSize' argument is invalid, must be either 64 or 128`) |
| 17 |
strconv.FormatComplex(0, 'j', 0, 64) //@ diag(`'fmt' argument is invalid: unknown format 'j'`) |
| 18 |
} |