Xamarin Public Jenkins (auto-signing) e19d552987 Imported Upstream version 5.18.0.161
Former-commit-id: 4db48158d3a35497b8f118ab21b5f08ac3d86d98
2018-10-19 08:34:24 +00:00

18 lines
351 B
Plaintext

# RUN: Kaleidoscope-Ch4 < %s 2>&1 | FileCheck %s
# Test basic definition, binding, and execution.
def foo(x) x + 1;
def bar(x) foo(2 * x);
bar(2);
# CHECK: Evaluated to 5.000000
# Test redefinition.
def foo(x) x + 2;
foo(2);
# CHECK: Evaluated to 4.000000
# Verify that 'bar' still calls the original 'foo'.
bar(2);
# CHECK: Evaluated to 5.000000