Also test error recovery from non-existing file.

This commit is contained in:
Axel Naumann 2015-02-18 10:33:01 +01:00 committed by sftnight
parent 39e505288b
commit c1cf9236c0

View File

@ -6,8 +6,10 @@
// LICENSE.TXT for details.
//------------------------------------------------------------------------------
// RUN: clang -shared %S/call_lib.c -olibcall_lib%shlibext
// RUN: cat %s | %cling -L %p | FileCheck %s
// RUN: clang -shared %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@1{{'DoesNotExistPleaseRecover' file not found}}
#pragma cling load("libcall_lib")
extern "C" int cling_testlibrary_function();