brintos

brintos / llvm-project-archived public Read only

0
0
Text · 591 B · f97d8aa Raw
19 lines · cpp
1// Test that we're able to evaluate expressions in inferiors without the2// standard library (and mmap-like functions in particular).3 4// REQUIRES: native5// UNSUPPORTED: ld_preload-present6// XFAIL: system-linux && !(target-x86 || target-x86_64)7// XFAIL: system-netbsd || system-freebsd || system-darwin8 9// RUN: %build %s --nodefaultlib -o %t10// RUN: %lldb %t -o "b main" -o run -o "expression call_me(5, 6)" -o exit \11// RUN:   | FileCheck %s12 13// CHECK: expression call_me(5, 6)14// CHECK: (int) $0 = 3015 16int call_me(int x, long y) { return x * y; }17 18int main() { return call_me(4, 5); }19