llvm-project/clang/test/PCH/preprocess.c
Douglas Gregor 45fe0364aa Make precompiled headers work with -E. When we're only preprocessing
(with -E), we turn the PCH include into an implicit include of the
file from which the PCH file was generated.

llvm-svn: 71534
2009-05-12 01:31:05 +00:00

6 lines
166 B
C

// 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"
int a_value;