diff options
Diffstat (limited to 'test/PCH/preprocess.c')
-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; |