aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Examples/Kaleidoscope/Chapter4.test
blob: 3d1ab54543f5a2f67260248f64cc5bcb58165b94 (plain)
1
2
3
4
5
6
7
8
9
# RUN: Kaleidoscope-Ch4 < %s 2>&1 | FileCheck %s
# REQUIRES: default_triple

# Test basic definition, binding, and execution.
def foo(x) x + 1;
def bar(x) foo(2 * x);
bar(2);
# CHECK: Evaluated to 5.000000