You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.205
Former-commit-id: 7f59f7e792705db773f1caecdaa823092f4e2927
This commit is contained in:
parent
5cd5df71cc
commit
8e12397d70
15
external/llvm/test/Examples/Kaleidoscope/Chapter6.test
vendored
Normal file
15
external/llvm/test/Examples/Kaleidoscope/Chapter6.test
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
# RUN: Kaleidoscope-Ch6 < %s 2>&1 | FileCheck %s
|
||||
|
||||
# Test unary operator definition.
|
||||
def unary-(x) 0 - x;
|
||||
1 + (-1);
|
||||
# CHECK: Evaluated to 0.000000
|
||||
|
||||
# Test binary operator definition.
|
||||
def binary> 10 (lhs rhs) rhs < lhs;
|
||||
def foo(x) if x > 10 then 0 else 1;
|
||||
foo(9);
|
||||
foo(11);
|
||||
# CHECK: Evaluated to 1.000000
|
||||
# CHECK: Evaluated to 0.000000
|
||||
|
Reference in New Issue
Block a user