summaryrefslogtreecommitdiff
path: root/Test/inline/fundef2.bpl
blob: 9e0f9fabc92e263057fe884cb9bff902a738c043 (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
}