Add PTH test case for <rdar://problem/8227989>.

llvm-svn: 109555
This commit is contained in:
Ted Kremenek 2010-07-27 23:06:03 +00:00
parent 9891212476
commit 038abf7db0
2 changed files with 19 additions and 0 deletions

7
clang/test/PCH/pth.c Normal file
View File

@ -0,0 +1,7 @@
// RUN: %clang_cc1 -triple i386-unknown-unknown -emit-pth -o %t %S/pth.h
// RUN: %clang_cc1 -triple i386-unknown-unknown -include-pth %t -fsyntax-only %s 2>&1 | FileCheck %s
#error This is the only diagnostic
// CHECK: This is the only diagnostic
// CHECK: 1 error generated.

12
clang/test/PCH/pth.h Normal file
View File

@ -0,0 +1,12 @@
// This case came up when using PTH with Boost (<rdar://problem/8227989>).
# ifndef R8227989_PREPROCESSOR_CONFIG_CONFIG_HPP
# ifndef R8227989_PP_CONFIG_FLAGS
# endif
#
# ifndef R8227989_PP_CONFIG_ERRORS
# ifdef NDEBUG
# endif
# endif
# endif