linux-packaging-mono/external/llvm-project/lldb/lit/Expr/TestCallUserDefinedFunction.test
Xamarin Public Jenkins (auto-signing) 468663ddbb Imported Upstream version 6.10.0.49
Former-commit-id: 1d6753294b2993e1fbf92de9366bb9544db4189b
2020-01-16 16:38:04 +00:00

21 lines
500 B
Plaintext

# 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