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