[cfe-commits] r109555 - in /cfe/trunk/test/PCH: pth.c pth.h

Ted Kremenek kremenek at apple.com
Tue Jul 27 16:06:03 PDT 2010


Author: kremenek
Date: Tue Jul 27 18:06:03 2010
New Revision: 109555

URL: http://llvm.org/viewvc/llvm-project?rev=109555&view=rev
Log:
Add PTH test case for <rdar://problem/8227989>.

Added:
    cfe/trunk/test/PCH/pth.c
    cfe/trunk/test/PCH/pth.h

Added: cfe/trunk/test/PCH/pth.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PCH/pth.c?rev=109555&view=auto
==============================================================================
--- cfe/trunk/test/PCH/pth.c (added)
+++ cfe/trunk/test/PCH/pth.c Tue Jul 27 18:06:03 2010
@@ -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.
\ No newline at end of file

Added: cfe/trunk/test/PCH/pth.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PCH/pth.h?rev=109555&view=auto
==============================================================================
--- cfe/trunk/test/PCH/pth.h (added)
+++ cfe/trunk/test/PCH/pth.h Tue Jul 27 18:06:03 2010
@@ -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
+





More information about the cfe-commits mailing list