22 lines
808 B
C++
22 lines
808 B
C++
|
//------------------------------------------------------------------------------
|
||
|
// CLING - the C++ LLVM-based InterpreterG :)
|
||
|
//
|
||
|
// This file is dual-licensed: you can choose to license it under the University
|
||
|
// of Illinois Open Source License or the GNU Lesser General Public License. See
|
||
|
// LICENSE.TXT for details.
|
||
|
//------------------------------------------------------------------------------
|
||
|
|
||
|
// RUN: mkdir -p %t-dir/lib
|
||
|
// RUN: %clang -shared -DCLING_EXPORT=%dllexport %S/call_lib_B.c -o%t-dir/lib/libcall_lib_B%shlibext
|
||
|
// RUN: cat %s | %cling -L%t-dir/lib 2>&1 | FileCheck %s
|
||
|
|
||
|
// Test: Lookup and load library Lib_B. Lookup function and use it to print
|
||
|
// result value.
|
||
|
|
||
|
.L libcall_lib_B
|
||
|
extern "C" int cling_testlibrary_function_B();
|
||
|
cling_testlibrary_function_B()
|
||
|
// CHECK: (int) 187
|
||
|
|
||
|
.q
|