diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-10-19 00:38:02 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-10-19 00:38:02 +0000 |
commit | 745e6f168d0276c15fb72f3d90e3d93d60282b1b (patch) | |
tree | 8e6a7239b5902503f0e5b72568a222d98410d315 /test/PCH | |
parent | ae8273a6a56250ec1f674fcaf309f1974229b78b (diff) | |
download | clang-745e6f168d0276c15fb72f3d90e3d93d60282b1b.tar.gz |
Move the set of files to be validated in an AST file into the control
block, so the input files are validated early on, before we've
committed to loading the AST file. This (accidentally) fixed a but
wherein the main file used to generate the AST file would *not* be
validated by the existing validation logic.
At the moment, this leads to some duplication of filenames between the
source manager block and input-file blocks, as well as validation
logic. This will be handled via an upcoming patch.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166251 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/PCH')
-rw-r--r-- | test/PCH/missing-file.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/test/PCH/missing-file.cpp b/test/PCH/missing-file.cpp index 8edaaea79d..7dd11d4561 100644 --- a/test/PCH/missing-file.cpp +++ b/test/PCH/missing-file.cpp @@ -10,16 +10,8 @@ // RUN: rm %t.h || rm %t.h || rm %t.h // Check diagnostic with location in original source: -// RUN: %clang_cc1 -include-pch %t.h.pch -Wpadded -emit-obj -o %t.o %s 2> %t.stderr -// RUN: grep 'bytes to align' %t.stderr - -// Check diagnostic with 2nd location in original source: -// RUN: not %clang_cc1 -DREDECL -include-pch %t.h.pch -emit-obj -o %t.o %s 2> %t.stderr -// RUN: grep 'previous definition is here' %t.stderr - -// Check diagnostic with instantiation location in original source: -// RUN: not %clang_cc1 -DINSTANTIATION -include-pch %t.h.pch -emit-obj -o %t.o %s 2> %t.stderr -// RUN: grep 'cannot be used prior to' %t.stderr +// RUN: not %clang_cc1 -include-pch %t.h.pch -emit-obj -o %t.o %s 2> %t.stderr +// RUN: grep 'could not find file' %t.stderr void qq(S*) {} |