1// Test that we're able to evaluate expressions in inferiors without the
2// standard library (and mmap-like functions in particular).
3
4// REQUIRES: native
5// UNSUPPORTED: ld_preload-present
6// XFAIL: system-linux && !(target-x86 || target-x86_64)
7// XFAIL: system-netbsd || system-freebsd || system-darwin
8
9// RUN: %build %s --nodefaultlib -o %t
10// RUN: %lldb %t -o "b main" -o run -o "expression call_me(5, 6)" -o exit \
11// RUN: | FileCheck %s
12
13// CHECK: expression call_me(5, 6)
14// CHECK: (int) $0 = 30
15
16int call_me(int x, long y) { return x * y; }
17
18int main() { return call_me(x: 4, y: 5); }
19

source code of lldb/test/Shell/Expr/nodefaultlib.cpp