1 # RUN: Kaleidoscope-Ch6 < %s 2>&1 | FileCheck %s
2 # REQUIRES: default_triple
4 # Test unary operator definition.
7 # CHECK: Evaluated to 0.000000
9 # Test binary operator definition.
10 def binary> 10 (lhs rhs) rhs < lhs;
11 def foo(x) if x > 10 then 0 else 1;
14 # CHECK: Evaluated to 1.000000
15 # CHECK: Evaluated to 0.000000