[TableGen] Remove dead code. NFC.
[oota-llvm.git] / test / Examples / Kaleidoscope / Chapter5.test
1 # RUN: Kaleidoscope-Ch5 < %s 2>&1 | FileCheck %s
2
3 # Test 'if' expression.
4 def foo(x) if x < 10 then 0 else 1;
5 foo(9);
6 foo(11);
7 # CHECK: Evaluated to 0.000000
8 # CHECK: Evaluated to 1.000000
9
10 # Test 'for' expression.
11 extern printd(x);
12 for 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