diff options
author | Lang Hames <lhames@gmail.com> | 2015-08-27 20:33:22 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2015-08-27 20:33:22 +0000 |
commit | e2edcdcd934d3134114476beb098716331ecbf39 (patch) | |
tree | b21773287b8a62401794ebd1f740f8db3d69c211 /llvm/test/Examples/Kaleidoscope/Chapter7.test | |
parent | 53b2afa28f6592f8e85b2f97e83f219dc8dde891 (diff) | |
download | bcm5719-llvm-e2edcdcd934d3134114476beb098716331ecbf39.tar.gz bcm5719-llvm-e2edcdcd934d3134114476beb098716331ecbf39.zip |
Oops - Re-add the Kaleidoscope regression tests themselves (accidentally left
out of r246201).
llvm-svn: 246203
Diffstat (limited to 'llvm/test/Examples/Kaleidoscope/Chapter7.test')
-rw-r--r-- | llvm/test/Examples/Kaleidoscope/Chapter7.test | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/Examples/Kaleidoscope/Chapter7.test b/llvm/test/Examples/Kaleidoscope/Chapter7.test new file mode 100644 index 00000000000..4843ca703ae --- /dev/null +++ b/llvm/test/Examples/Kaleidoscope/Chapter7.test @@ -0,0 +1,15 @@ +# RUN: Kaleidoscope-Ch7 < %s 2>&1 | FileCheck %s + +# Sequence operator and iterative fibonacci function to test user defined vars. +def binary : 1 (x y) y; + +def fibi(x) + var a = 1, b = 1, c in + (for i = 3, i < x in + c = a + b : + a = b : + b = c) : + b; + +fibi(10); +# CHECK: Evaluated to 55.000000 |