8f257e74d3
This is the only way not to confuse the diagnostics engine of upgraded clang. Also, this gives us a few advantages: * We can compare more precisely the source locations of diagnostics; * We can merge the code completion code path which works with file entries; * We can rely better when specifying //expected-note-s in different files.
20 lines
814 B
C
20 lines
814 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: clang -shared -DCLING_EXPORT=%dllexport %S/call_lib.c -o%T/libcall_lib%shlibext
|
|
// RUN: cat %s | %cling -L %T -Xclang -verify 2>&1 | FileCheck %s
|
|
|
|
#pragma cling load("DoesNotExistPleaseRecover")
|
|
// expected-error@input_line_13:1{{'DoesNotExistPleaseRecover' file not found}}
|
|
|
|
#pragma cling load("libcall_lib")
|
|
extern "C" int cling_testlibrary_function();
|
|
|
|
cling_testlibrary_function()
|
|
// CHECK: (int) 66
|