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 515cacab7SMichał 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 10*d875838eSDave Lee // RUN: %lldb %t -o "b main" -o run -o "expression call_me(5, 6)" -o exit \ 112c4226f8SPavel Labath // RUN: | FileCheck %s 122c4226f8SPavel Labath 13*d875838eSDave Lee // CHECK: expression call_me(5, 6) 142c4226f8SPavel Labath // CHECK: (int) $0 = 30 152c4226f8SPavel Labath call_me(int x,long y)162c4226f8SPavel Labathint call_me(int x, long y) { return x * y; } 172c4226f8SPavel Labath main()182c4226f8SPavel Labathint main() { return call_me(4, 5); } 19