summaryrefslogtreecommitdiff
path: root/Test/test1/IfThenElse0.bpl
blob: 65ae65f614ce02636c30b743ec5745095ea527c8 (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;
}