1# RUN: Kaleidoscope-Ch5 < %s 2>&1 | FileCheck %s 2 3# Test 'if' expression. 4def foo(x) if x < 10 then 0 else 1; 5foo(9); 6foo(11); 7# CHECK: Evaluated to 0.000000 8# CHECK: Evaluated to 1.000000 9 10# Test 'for' expression. 11extern printd(x); 12for i = 1, i < 5, 1.0 in 13 printd(i); 14# CHECK: 1.0 15# CHECK: 2.0 16# CHECK: 3.0 17# CHECK: 4.0 18# CHECK: 5.0 19# CHECK: Evaluated to 0.000000