Skip to content

Commit

Permalink
Add one more Unit return test
Browse files Browse the repository at this point in the history
  • Loading branch information
KacperFKorban committed Jan 4, 2025
1 parent 7b9a07f commit d8d9dbe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Empty file.
15 changes: 15 additions & 0 deletions frontends/benchmarks/genc/valid/TailRecUnitIf.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import stainless.annotation._
import stainless.lang._
import stainless.io._

object TailRecUnit {
def countDown(n: Int): Unit =
if (n == 0) return
else countDown(n - 1)

@cCode.`export`
def main(): Unit = {
implicit val state = stainless.io.newState
countDown(1000000)
}
}

0 comments on commit d8d9dbe

Please sign in to comment.