[TableGen] Remove dead code. NFC.
[oota-llvm.git] / test / Examples / Kaleidoscope / Chapter6.test
1 # RUN: Kaleidoscope-Ch6 < %s 2>&1 | FileCheck %s
2
3 # Test unary operator definition.
4 def unary-(x) 0 - x;
5 1 + (-1);
6 # CHECK: Evaluated to 0.000000
7
8 # Test binary operator definition.
9 def binary> 10 (lhs rhs) rhs < lhs;
10 def foo(x) if x > 10 then 0 else 1;
11 foo(9);
12 foo(11);
13 # CHECK: Evaluated to 1.000000
14 # CHECK: Evaluated to 0.000000
15