aboutsummaryrefslogtreecommitdiff
path: root/lit/Expr/TestCallUserDefinedFunction.test
diff options
context:
space:
mode:
Diffstat (limited to 'lit/Expr/TestCallUserDefinedFunction.test')
-rw-r--r--lit/Expr/TestCallUserDefinedFunction.test20
1 files changed, 20 insertions, 0 deletions
diff --git a/lit/Expr/TestCallUserDefinedFunction.test b/lit/Expr/TestCallUserDefinedFunction.test
new file mode 100644
index 000000000000..0c98a9bae78c
--- /dev/null
+++ b/lit/Expr/TestCallUserDefinedFunction.test
@@ -0,0 +1,20 @@
+# XFAIL: windows
+# -> llvm.org/pr24489
+
+# RUN: %cxx %p/Inputs/call-function.cpp -g -o %t && %lldb -b -s %s -- %t | FileCheck %s
+
+breakpoint set --file call-function.cpp --line 52
+run
+expression fib(5)
+# CHECK: $0 = 5
+expression add(4,8)
+# CHECK: $1 = 12
+
+expression add(add(5,2),add(3,4))
+# CHECK: $2 = 14
+expression add(add(5,2),fib(5))
+# CHECK: $3 = 12
+expression stringCompare((const char*) "Hello world")
+# CHECK: $4 = true
+expression stringCompare((const char*) "Hellworld")
+# CHECK: $5 = false