diff options
author | Araq <rumpf_a@web.de> | 2011-03-14 23:57:41 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-03-14 23:57:41 +0100 |
commit | 8d734244b14e09c97267432468ac20fcf8ff82eb (patch) | |
tree | 253eae61df789c42efe49b7c30cf38c66a3c208e /tests/accept/compile/tfib.nim | |
parent | 6850fb73c1b9ae8d3f56a61ee37922c3cb3788d6 (diff) | |
download | Nim-8d734244b14e09c97267432468ac20fcf8ff82eb.tar.gz |
linearScanEnd pragma; string case statement optimization
Diffstat (limited to 'tests/accept/compile/tfib.nim')
-rw-r--r-- | tests/accept/compile/tfib.nim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/accept/compile/tfib.nim b/tests/accept/compile/tfib.nim new file mode 100644 index 000000000..09a4d5038 --- /dev/null +++ b/tests/accept/compile/tfib.nim @@ -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 + + |