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