diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-12 01:36:20 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-12 01:36:20 +0000 |
commit | 1ea52949b2852e88af4201cd46fe89f9af46220d (patch) | |
tree | 96b24786ef74df1668d2850edfe4334a2265a1ce /test | |
parent | ab71ff5cbaf6a4ab1df32221afbb0186c6fbbf0e (diff) |
Fix PCH/preprocess test to be more useful, and unbreak -E mode with implicit
PCH, which I broke.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86921 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/PCH/preprocess.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/PCH/preprocess.c b/test/PCH/preprocess.c index bd91e5c118..7a6c2c5a4e 100644 --- a/test/PCH/preprocess.c +++ b/test/PCH/preprocess.c @@ -1,5 +1,8 @@ +// Check that -E mode is invariant when using an implicit PCH. + +// RUN: clang-cc -include %S/preprocess.h -E -o %t.orig %s // RUN: clang-cc -emit-pch -o %t %S/preprocess.h -// RUN: clang-cc -include-pch %t -E -o - %s | grep -c "a_typedef" | count 1 -#include "preprocess.h" +// RUN: clang-cc -include-pch %t -E -o %t.from_pch %s +// RUN: diff %t.orig %t.from_pch -int a_value; +a_typedef a_value; |