1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/test/Examples/Kaleidoscope/Chapter4.test
Lang Hames d7a7129dcf [examples] Fix test: Kaleidoscope Chapter 4 no longer supports redefinition.
This may be fixed in the future, but since redefinition in OrcV2 requires more
manual work on the JIT client's part it was left out of the most recent update
to the tutorials.
2020-10-19 00:35:56 -07:00

10 lines
207 B
Plaintext

# 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