diff options
| author | Roman Divacky <rdivacky@FreeBSD.org> | 2009-11-18 14:59:57 +0000 |
|---|---|---|
| committer | Roman Divacky <rdivacky@FreeBSD.org> | 2009-11-18 14:59:57 +0000 |
| commit | b3d5a323a5ca92ea73443499cee2f15db1ff0fb3 (patch) | |
| tree | 60a1694bec5a44d15456acc880cb2f91619f66aa /test/PCH/preprocess.c | |
| parent | 8f57cb0305232cb53fff00ef151ca716766f3437 (diff) | |
Notes
Diffstat (limited to 'test/PCH/preprocess.c')
| -rw-r--r-- | test/PCH/preprocess.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/PCH/preprocess.c b/test/PCH/preprocess.c index 128cc0acb9736..7a6c2c5a4e2bc 100644 --- a/test/PCH/preprocess.c +++ b/test/PCH/preprocess.c @@ -1,5 +1,8 @@ -// 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" +// Check that -E mode is invariant when using an implicit PCH. -int a_value; +// 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 %t.from_pch %s +// RUN: diff %t.orig %t.from_pch + +a_typedef a_value; |
