diff options
Diffstat (limited to 'test/loopbce.go')
| -rw-r--r-- | test/loopbce.go | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/loopbce.go b/test/loopbce.go index ca09e7e7f7..3ef08a2b8d 100644 --- a/test/loopbce.go +++ b/test/loopbce.go @@ -469,6 +469,34 @@ func stride2(x *[7]int) int { return s } +// This loop should not be proved anything. +func smallIntUp(arr *[128]int) { + for i := int8(0); i <= int8(120); i += int8(10) { + arr[i] = int(i) + } +} + +// This loop should not be proved anything. +func smallIntDown(arr *[128]int) { + for i := int8(0); i >= int8(-120); i -= int8(10) { + arr[127+i] = int(i) + } +} + +// This loop should not be proved anything. +func smallUintUp(arr *[128]int) { + for i := uint8(0); i <= uint8(250); i += uint8(10) { + arr[i] = int(i) + } +} + +// This loop should not be proved anything. +func smallUintDown(arr *[128]int) { + for i := uint8(255); i >= uint8(0); i -= uint8(10) { + arr[127+i] = int(i) + } +} + //go:noinline func useString(a string) { } |
