Skip to content

Commit

Permalink
added failing test to show issue with printing ghost expressions in
Browse files Browse the repository at this point in the history
methods
  • Loading branch information
danmatichuk committed Jul 12, 2016
1 parent 016dd09 commit 021226d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Test/dafny0/GhostPrint.dfy
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//XFAIL: *
//RUN: %dafny /dafnyVerify:0 /compile:0 /env:0 /dprint:"%t.dfy" "%s"
//RUN: %dafny /dafnyVerify:0 /compile:0 /env:0 "%t.dfy" > "%t.output"
//RUN: %diff "%s.expect" "%t.output"

method M() {
ghost var h := var ta := F(); 5;
var j := ghost var tb := F(); 5;
assert h == j;
}

function F(): int { 5 }

Empty file.

0 comments on commit 021226d

Please sign in to comment.