summaryrefslogtreecommitdiff
path: root/Test/inline/fundef2.bpl
blob: 39453453fd2d1f0bf8564b87bbb7d2b973d7272c (plain)
1
2
3
4
5
6
7
8
9
// RUN: %boogie "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
function {:inline true} foo(x:int) returns(bool)
  { x > 0 }

procedure P() {
  assert foo(13);
  assert foo(-5);  // error
}