diff options
author | Clément Pit--Claudel <clement.pitclaudel@live.com> | 2015-08-22 20:15:34 -0700 |
---|---|---|
committer | Clément Pit--Claudel <clement.pitclaudel@live.com> | 2015-08-22 20:15:34 -0700 |
commit | 2142e51d713394d384b0f33c1189f633dcbe301a (patch) | |
tree | 56ca11c306077e513d602fedf2a054eb32c9e031 /Test/wishlist/granted/useless-casts-in-decreases-clauses.dfy | |
parent | d0a06250f82efe318fcc0f7ce80d4286552fe727 (diff) |
Grant "wishlist/useless-casts-in-decreases-clauses.dfy"
Diffstat (limited to 'Test/wishlist/granted/useless-casts-in-decreases-clauses.dfy')
-rw-r--r-- | Test/wishlist/granted/useless-casts-in-decreases-clauses.dfy | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Test/wishlist/granted/useless-casts-in-decreases-clauses.dfy b/Test/wishlist/granted/useless-casts-in-decreases-clauses.dfy new file mode 100644 index 00000000..9b002d47 --- /dev/null +++ b/Test/wishlist/granted/useless-casts-in-decreases-clauses.dfy @@ -0,0 +1,9 @@ +// RUN: %dafny /compile:0 /print:"%t.print" /dprint:"%t.dprint" /printTooltips "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+method M() {
+ var pos := 10;
+ while (pos > 0) { // This shouldn't print int(pos) - int(0); pos - 0 would be better
+ pos := pos - 1;
+ }
+}
|