aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-11-05 10:15:30 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-11-05 10:15:30 +0000
commit129d92478d9747fc7a1bb498efb089badf7cee69 (patch)
tree40468c767a259a4830a05af50f681d75f168fd22
parent044a790ca302497322baa1b612eb8f1ecaf204c4 (diff)
Switch these two tests to use the Clang driver instead of CC1. They want
to do "realistic" includes, and so need the header search logic now in the driver. This in turn requires switching the CC1 options to the actual driver options, and passing -Xclang where there is no analogy. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143805 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Analysis/iterators.cpp2
-rw-r--r--test/PCH/reloc.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/test/Analysis/iterators.cpp b/test/Analysis/iterators.cpp
index 741970aa6c..1b6340b2af 100644
--- a/test/Analysis/iterators.cpp
+++ b/test/Analysis/iterators.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -analyze -analyzer-checker=core,experimental.cplusplus.Iterators -verify %s
+// RUN: %clang --analyze -Xclang -analyzer-checker=core,experimental.cplusplus.Iterators -Xclang -verify %s
// XFAIL: win32
#include <vector>
diff --git a/test/PCH/reloc.c b/test/PCH/reloc.c
index fd78feba60..a772a824d4 100644
--- a/test/PCH/reloc.c
+++ b/test/PCH/reloc.c
@@ -1,6 +1,6 @@
-// RUN: %clang_cc1 -emit-pch -o %t -relocatable-pch -isysroot %S/libroot %S/libroot/usr/include/reloc.h
-// RUN: %clang_cc1 -include-pch %t -isysroot %S/libroot %s -verify
-// RUN: not %clang_cc1 -include-pch %t %s
+// RUN: %clang --relocatable-pch -o %t -isysroot %S/libroot %S/libroot/usr/include/reloc.h
+// RUN: %clang -fsyntax-only -include-pch %t -isysroot %S/libroot %s -Xclang -verify
+// RUN: not %clang -include-pch %t %s
#include <reloc.h>