aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-04-01 18:25:32 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-04-01 18:25:32 +0000
commit16e3fed83966be5642d37441efe61edce5136b70 (patch)
treebfd5cd0e6f81e4be44ae9fc1da0842ffc8efab86
parent3fb07bdc32cb301a8438c297fe7d68542a7537b2 (diff)
Split PTH tests from carbon.c into separate test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68223 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Sema/carbon-pth.c7
-rw-r--r--test/Sema/carbon.c5
2 files changed, 8 insertions, 4 deletions
diff --git a/test/Sema/carbon-pth.c b/test/Sema/carbon-pth.c
new file mode 100644
index 0000000000..ebc8840545
--- /dev/null
+++ b/test/Sema/carbon-pth.c
@@ -0,0 +1,7 @@
+// 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
+
diff --git a/test/Sema/carbon.c b/test/Sema/carbon.c
index 885a29cdf3..8e6837f125 100644
--- a/test/Sema/carbon.c
+++ b/test/Sema/carbon.c
@@ -1,8 +1,5 @@
// 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
+// RUN: clang-cc %s -disable-free
#ifdef __APPLE__
#include <Carbon/Carbon.h>
#endif