llvm-for-llvmta/test/Examples/Kaleidoscope/Chapter4.test

10 lines
207 B
Plaintext
Raw Normal View History

2022-04-25 10:02:23 +02:00
# 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