Pass on the filesystem error string `FileManager::getFileRef` in `clang-import-test`'s `ParseSource` function. Also include "error:" and a newline in the output. As a side effect, migrate to the `FileEntryRef` overload of `SourceManager::createFileID`. No real functionality change here, just slightly better output on error. Differential Revision: https://reviews.llvm.org/D92971
7 lines
207 B
C
7 lines
207 B
C
// RUN: not clang-import-test -import %S/Inputs/S.c -expression %s 2>&1 | FileCheck %s
|
|
// CHECK: error: No such file or directory: {{.*}}Inputs/S.c{{$}}
|
|
void expr() {
|
|
struct S MyS;
|
|
void *MyPtr = &MyS;
|
|
}
|