1 // Test that we're able to evaluate expressions in inferiors without the
2 // standard library (and mmap-like functions in particular).
5 // UNSUPPORTED: ld_preload-present
6 // XFAIL: system-linux && !(target-x86 || target-x86_64)
7 // XFAIL: system-netbsd || system-freebsd || system-darwin
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
13 // CHECK: expression call_me(5, 6)
14 // CHECK: (int) $0 = 30
16 int call_me(int x
, long y
) { return x
* y
; }
18 int main() { return call_me(4, 5); }