linearScanEnd pragma; string case statement optimization
This commit is contained in:
parent
6850fb73c1
commit
8d734244b1
26 changed files with 537 additions and 252 deletions
11
tests/accept/compile/tfib.nim
Normal file
11
tests/accept/compile/tfib.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
iterator fibonacci(): int =
|
||||
var a = 0
|
||||
var b = 1
|
||||
while true:
|
||||
yield a
|
||||
var c = b
|
||||
b = a
|
||||
a = a + c
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue