summaryrefslogtreecommitdiff
path: root/Test/wishlist/granted/useless-casts-in-decreases-clauses.dfy
blob: 9b002d47368fb8efb70425bb1177c2504d2f636d (plain)
1
2
3
4
5
6
7
8
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;
  }
}