]> granicus.if.org Git - clang/commitdiff
Re-enable PTH testing for cocoa.h and carbon.h. This tests that PTH works on
authorTed Kremenek <kremenek@apple.com>
Wed, 1 Apr 2009 15:28:20 +0000 (15:28 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 1 Apr 2009 15:28:20 +0000 (15:28 +0000)
real-world header files and these tests have caught serious bugs in the past.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68204 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/carbon.c
test/SemaObjC/cocoa.m

index 983a000b2cf94c605093c28d7d0b2d6faecd1a53..885a29cdf3eff9eb7f1b81da17e20ed0f6775150 100644 (file)
@@ -1,4 +1,8 @@
-// RUN: clang-cc %s -fsyntax-only -print-stats
+// RUN: clang-cc %s -print-stats &&
+// RUN: clang-cc %s -disable-free &&
+// RUN: clang-cc -emit-pth -o %t %s && 
+// RUN: clang-cc -token-cache %t %s &&
+// RUN: clang-cc -token-cache %t %s -E %s -o /dev/null
 #ifdef __APPLE__
 #include <Carbon/Carbon.h>
 #endif
index 153c46e1034d1345c8b7a826fa76e32ad18c4e0d..0064094411d07d92eb1d2efe0b0b06c1186b2d3b 100644 (file)
@@ -1,5 +1,8 @@
 // RUN: clang-cc %s -print-stats &&
-// RUN: clang-cc %s -disable-free
+// RUN: clang-cc %s -disable-free &&
+// RUN: clang-cc -emit-pth -o %t %s && 
+// RUN: clang-cc -token-cache %t %s &&
+// RUN: clang-cc -token-cache %t %s -E %s -o /dev/null
 #ifdef __APPLE__
 #include <Cocoa/Cocoa.h>
 #endif