summaryrefslogtreecommitdiff
path: root/Test/test1/IfThenElse0.bpl
blob: 19918827a64da896800a03a3f8bdd36da1067e72 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %boogie -noVerify "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
procedure foo()
{
  var b:bool, i:int;

  b := if i then b else b;
  b := if b then b else i;
  b := if b then i else i;
}