1 # RUN: Kaleidoscope-Ch5 < %s 2>&1 | FileCheck %s
2 # REQUIRES: default_triple
4 # Test 'if' expression.
5 def foo(x) if x < 10 then 0 else 1;
8 # CHECK: Evaluated to 0.000000
9 # CHECK: Evaluated to 1.000000
11 # Test 'for' expression.
13 for i = 1, i < 5, 1.0 in
20 # CHECK: Evaluated to 0.000000