From 8d69a5768dd13d9ada1c35802c4ad7f3987b99ec Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 1 Apr 2009 15:28:20 +0000 Subject: [PATCH] Re-enable PTH testing for cocoa.h and carbon.h. This tests that PTH works on 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 | 6 +++++- test/SemaObjC/cocoa.m | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/test/Sema/carbon.c b/test/Sema/carbon.c index 983a000b2c..885a29cdf3 100644 --- a/test/Sema/carbon.c +++ b/test/Sema/carbon.c @@ -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 #endif diff --git a/test/SemaObjC/cocoa.m b/test/SemaObjC/cocoa.m index 153c46e103..0064094411 100644 --- a/test/SemaObjC/cocoa.m +++ b/test/SemaObjC/cocoa.m @@ -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 #endif -- 2.40.0