summaryrefslogtreecommitdiff
path: root/Test/dafny0/ResolutionErrors.dfy
diff options
context:
space:
mode:
authorGravatar leino <unknown>2015-09-20 22:11:33 -0700
committerGravatar leino <unknown>2015-09-20 22:11:33 -0700
commit029f016b365c844137399b2153bf59339d5612b7 (patch)
treeac58604253e6f7276d389b5af165a2f52633803a /Test/dafny0/ResolutionErrors.dfy
parente1eb35cb37d49c30b5a24ed828dc1ea505b00cc2 (diff)
Added back in various ghost tests
Diffstat (limited to 'Test/dafny0/ResolutionErrors.dfy')
-rw-r--r--Test/dafny0/ResolutionErrors.dfy10
1 files changed, 5 insertions, 5 deletions
diff --git a/Test/dafny0/ResolutionErrors.dfy b/Test/dafny0/ResolutionErrors.dfy
index d38d2506..2fab6bf3 100644
--- a/Test/dafny0/ResolutionErrors.dfy
+++ b/Test/dafny0/ResolutionErrors.dfy
@@ -238,7 +238,7 @@ class GhostTests {
p := p + 1;
}
}
-/***KRML method BreakMayNotBeFineHere_Ghost(ghost t: int)
+method BreakMayNotBeFineHere_Ghost(ghost t: int)
{
var n := 0;
ghost var k := 0;
@@ -295,7 +295,7 @@ class GhostTests {
n := n + 1;
p := p + 1;
}
- }****/
+ }
}
method DuplicateLabels(n: int) {
@@ -364,7 +364,7 @@ method DatatypeDestructors(d: DTD_List) {
}
}
method DatatypeDestructors_Ghost(d: DTD_List) {
-//KRML var g1 := d.g; // error: cannot use ghost member in non-ghost code
+ var g1 := d.g; // error: cannot use ghost member in non-ghost code
}
// ------------------- print statements ---------------------------------------
@@ -439,7 +439,7 @@ method TestCalc_Ghost(m: int, n: int, a: bool, b: bool)
{
calc {
n + m;
-//KRML { print n + m; } // error: non-ghost statements are not allowed in hints
+ { print n + m; } // error: non-ghost statements are not allowed in hints
m + n;
}
}
@@ -605,7 +605,7 @@ method LetSuchThat(ghost z: int, n: nat)
}
method LetSuchThat_Ghost(ghost z: int, n: nat)
{
-//KRML var x := var y :| y < z; y; // error: contraint depend on ghost (z)
+ var x := var y :| y < z; y; // error: contraint depend on ghost (z)
}
// ------------ quantified variables whose types are not inferred ----------