summaryrefslogtreecommitdiff
path: root/Test/test0/Quoting.bpl
blob: db8ccf9243a1ffcca0a083fe73e7b5b65b340269 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// RUN: %boogie -noVerify -print:- -env:0 "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
function \true() returns(bool);

type \procedure;
procedure \old(\any : \procedure) returns(\var : \procedure)
{
  var \modifies : \procedure;
  \modifies := \any;
  \var := \modifies;
}

procedure qux(a : \procedure)
{
  var \var : \procedure; var x : bool;
  call \var := \old(a);
  x := \true();
}