summaryrefslogtreecommitdiff
path: root/Test/bitvectors/bv2.bpl
blob: 8e2c1dad4480cc0d3a634513b4afe987d32742c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %boogie -proverWarnings:1 "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
procedure foo2(x : bv32) returns(r : bv32)
{
  block1:
    r := x[-1:1];  // Error
//    r := x[x:1];  // Error
    r := x[1:x];  // Error
    r := x[1+1:3];  // Error
    return;
}