12c4226f8SPavel Labath // Test that we're able to evaluate expressions in inferiors without the
22c4226f8SPavel Labath // standard library (and mmap-like functions in particular).
32c4226f8SPavel Labath 
42c4226f8SPavel Labath // REQUIRES: native
5*15cacab7SMichał Górny // UNSUPPORTED: ld_preload-present
62c4226f8SPavel Labath // XFAIL: system-linux && !(target-x86 || target-x86_64)
7a1ab2b77SPavel Labath // XFAIL: system-netbsd || system-freebsd || system-darwin
82c4226f8SPavel Labath 
92c4226f8SPavel Labath // RUN: %build %s --nodefaultlib -o %t
102c4226f8SPavel Labath // RUN: %lldb %t -o "b main" -o run -o "p call_me(5, 6)" -o exit \
112c4226f8SPavel Labath // RUN:   | FileCheck %s
122c4226f8SPavel Labath 
13a1ab2b77SPavel Labath // CHECK: p call_me(5, 6)
142c4226f8SPavel Labath // CHECK: (int) $0 = 30
152c4226f8SPavel Labath 
call_me(int x,long y)162c4226f8SPavel Labath int call_me(int x, long y) { return x * y; }
172c4226f8SPavel Labath 
main()182c4226f8SPavel Labath int main() { return call_me(4, 5); }
19