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 // XFAIL: system-linux && !(target-x86 || target-x86_64)
6 // XFAIL: system-netbsd || system-freebsd || system-darwin
7
8 // RUN: %build %s --nodefaultlib -o %t
9 // RUN: %lldb %t -o "b main" -o run -o "p call_me(5, 6)" -o exit \
10 // RUN: | FileCheck %s
11
12 // CHECK: p call_me(5, 6)
13 // CHECK: (int) $0 = 30
14
call_me(int x,long y)15 int call_me(int x, long y) { return x * y; }
16
main()17 int main() { return call_me(4, 5); }
18