Files
clang-p2996/llvm/test/Examples/Kaleidoscope/Chapter7.test
Mehdi Amini 8b64adb0a2 Fix incorrect "REQUIRE" (default_target->default_triple) introduced in 59f45a1cdb
Adding `default_target` fixed the build by excluding these tests... but
this excluded these tests from ever running!
The correct feature check is `default_triple`
2020-06-23 18:22:39 +00:00

17 lines
334 B
Plaintext

# RUN: Kaleidoscope-Ch7 < %s 2>&1 | FileCheck %s
# REQUIRES: default_triple
# Sequence operator and iterative fibonacci function to test user defined vars.
def binary : 1 (x y) y;
def fibi(x)
var a = 1, b = 1, c in
(for i = 3, i < x in
c = a + b :
a = b :
b = c) :
b;
fibi(10);
# CHECK: Evaluated to 55.000000