mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-23 12:40:38 +00:00
b6347771b1
out of r246201). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246203 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
307 B
Plaintext
16 lines
307 B
Plaintext
# 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
|