| 1 | package issue336 |
| 2 | |
| 3 | import "testing" |
| 4 | |
| 5 | //go:generate go run asm.go -out issue336.s -stubs stub.go |
| 6 | |
| 7 | func TestNot(t *testing.T) { |
| 8 | nots := []func(bool) bool{Not8, Not16, Not32, Not64} |
| 9 | for _, not := range nots { |
| 10 | for _, x := range []bool{true, false} { |
| 11 | if not(x) != !x { |
| 12 | t.Fail() |
| 13 | } |
| 14 | } |
| 15 | } |
| 16 | } |