[cfe-commits] r143805 - in /cfe/trunk/test: Analysis/iterators.cpp PCH/reloc.c
Chandler Carruth
chandlerc at gmail.com
Sat Nov 5 03:15:31 PDT 2011
Author: chandlerc
Date: Sat Nov 5 05:15:30 2011
New Revision: 143805
URL: http://llvm.org/viewvc/llvm-project?rev=143805&view=rev
Log:
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.
Modified:
cfe/trunk/test/Analysis/iterators.cpp
cfe/trunk/test/PCH/reloc.c
Modified: cfe/trunk/test/Analysis/iterators.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/iterators.cpp?rev=143805&r1=143804&r2=143805&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/iterators.cpp (original)
+++ cfe/trunk/test/Analysis/iterators.cpp Sat Nov 5 05:15:30 2011
@@ -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>
Modified: cfe/trunk/test/PCH/reloc.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PCH/reloc.c?rev=143805&r1=143804&r2=143805&view=diff
==============================================================================
--- cfe/trunk/test/PCH/reloc.c (original)
+++ cfe/trunk/test/PCH/reloc.c Sat Nov 5 05:15:30 2011
@@ -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>
More information about the cfe-commits
mailing list