r191107 - Switch tests in test/Headers to use %clang_cc1 rather than %clang. There
Chandler Carruth
chandlerc at gmail.com
Fri Sep 20 14:12:26 PDT 2013
Author: chandlerc
Date: Fri Sep 20 16:12:25 2013
New Revision: 191107
URL: http://llvm.org/viewvc/llvm-project?rev=191107&view=rev
Log:
Switch tests in test/Headers to use %clang_cc1 rather than %clang. There
is no need to go through the driver indirection here, and it clutters
things up as dependencies can sneak in for specific things the driver is
doing.
Modified:
cfe/trunk/test/Headers/c11.c
cfe/trunk/test/Headers/c89.c
cfe/trunk/test/Headers/cxx11.cpp
cfe/trunk/test/Headers/ms-intrin.cpp
cfe/trunk/test/Headers/ms-null-ms-header-vs-stddef.cpp
cfe/trunk/test/Headers/ms-wchar.c
cfe/trunk/test/Headers/tgmath.c
cfe/trunk/test/Headers/x86-intrinsics-headers.c
Modified: cfe/trunk/test/Headers/c11.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/c11.c?rev=191107&r1=191106&r2=191107&view=diff
==============================================================================
--- cfe/trunk/test/Headers/c11.c (original)
+++ cfe/trunk/test/Headers/c11.c Fri Sep 20 16:12:25 2013
@@ -1,6 +1,6 @@
-// RUN: %clang -fsyntax-only -Xclang -verify -std=c11 %s
-// RUN: %clang -fsyntax-only -Xclang -verify -std=c11 -fmodules %s
-// RUN: %clang -fsyntax-only -Xclang -verify -std=c11 -ffreestanding %s
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c11 %s
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c11 -fmodules %s
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c11 -ffreestanding %s
noreturn int f(); // expected-error 1+{{}}
Modified: cfe/trunk/test/Headers/c89.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/c89.c?rev=191107&r1=191106&r2=191107&view=diff
==============================================================================
--- cfe/trunk/test/Headers/c89.c (original)
+++ cfe/trunk/test/Headers/c89.c Fri Sep 20 16:12:25 2013
@@ -1,4 +1,4 @@
-// RUN: %clang -target i386-apple-darwin10 -fsyntax-only -Xclang -verify -std=c89 %s
+// RUN: %clang_cc1 -triple i386-apple-darwin10 -target-cpu yonah -fsyntax-only -verify -std=c89 %s
// expected-no-diagnostics
// FIXME: Disable inclusion of mm_malloc.h, our current implementation is broken
Modified: cfe/trunk/test/Headers/cxx11.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/cxx11.cpp?rev=191107&r1=191106&r2=191107&view=diff
==============================================================================
--- cfe/trunk/test/Headers/cxx11.cpp (original)
+++ cfe/trunk/test/Headers/cxx11.cpp Fri Sep 20 16:12:25 2013
@@ -1,5 +1,5 @@
-// RUN: %clang -ffreestanding -fsyntax-only -std=c++11 %s
-// RUN: %clang -ffreestanding -fsyntax-only -std=c++11 -fmodules %s
+// RUN: %clang_cc1 -ffreestanding -fsyntax-only -std=c++11 %s
+// RUN: %clang_cc1 -ffreestanding -fsyntax-only -std=c++11 -fmodules %s
#include <stdalign.h>
Modified: cfe/trunk/test/Headers/ms-intrin.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/ms-intrin.cpp?rev=191107&r1=191106&r2=191107&view=diff
==============================================================================
--- cfe/trunk/test/Headers/ms-intrin.cpp (original)
+++ cfe/trunk/test/Headers/ms-intrin.cpp Fri Sep 20 16:12:25 2013
@@ -1,4 +1,6 @@
-// RUN: %clang -target i386-pc-win32 -fms-extensions -ffreestanding -fsyntax-only %s
+// RUN: %clang_cc1 -triple i386-pc-win32 -target-cpu pentium4 \
+// RUN: -fms-extensions -fms-compatibility -fmsc-version=1700 \
+// RUN: -ffreestanding -fsyntax-only %s
// Intrin.h needs size_t, but -ffreestanding prevents us from getting it from
// stddef.h. Work around it with this typedef.
Modified: cfe/trunk/test/Headers/ms-null-ms-header-vs-stddef.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/ms-null-ms-header-vs-stddef.cpp?rev=191107&r1=191106&r2=191107&view=diff
==============================================================================
--- cfe/trunk/test/Headers/ms-null-ms-header-vs-stddef.cpp (original)
+++ cfe/trunk/test/Headers/ms-null-ms-header-vs-stddef.cpp Fri Sep 20 16:12:25 2013
@@ -1,5 +1,5 @@
-// RUN: %clang -fsyntax-only -target i686-pc-win32 %s
-// RUN: %clang -fsyntax-only -target i386-mingw32 %s
+// RUN: %clang_cc1 -fsyntax-only -triple i686-pc-win32 -fms-compatibility -fmsc-version=1700 %s
+// RUN: %clang_cc1 -fsyntax-only -triple i386-mingw32 %s
// Something in MSVC's headers (pulled in e.g. by <crtdefs.h>) defines __null
// to something, mimick that.
Modified: cfe/trunk/test/Headers/ms-wchar.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/ms-wchar.c?rev=191107&r1=191106&r2=191107&view=diff
==============================================================================
--- cfe/trunk/test/Headers/ms-wchar.c (original)
+++ cfe/trunk/test/Headers/ms-wchar.c Fri Sep 20 16:12:25 2013
@@ -1,4 +1,4 @@
-// RUN: %clang -fsyntax-only -target i386-pc-win32 %s
+// RUN: %clang_cc1 -fsyntax-only -triple i386-pc-win32 -fms-compatibility %s
#if defined(_WCHAR_T_DEFINED)
#error "_WCHAR_T_DEFINED should not be defined in C99"
Modified: cfe/trunk/test/Headers/tgmath.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/tgmath.c?rev=191107&r1=191106&r2=191107&view=diff
==============================================================================
--- cfe/trunk/test/Headers/tgmath.c (original)
+++ cfe/trunk/test/Headers/tgmath.c Fri Sep 20 16:12:25 2013
@@ -1,4 +1,4 @@
-// RUN: %clang -fsyntax-only -isystem %S/Inputs/include -Xclang -verify %s
+// RUN: %clang_cc1 -fsyntax-only -isystem %S/Inputs/include -verify %s
// expected-no-diagnostics
#include <tgmath.h>
Modified: cfe/trunk/test/Headers/x86-intrinsics-headers.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/x86-intrinsics-headers.c?rev=191107&r1=191106&r2=191107&view=diff
==============================================================================
--- cfe/trunk/test/Headers/x86-intrinsics-headers.c (original)
+++ cfe/trunk/test/Headers/x86-intrinsics-headers.c Fri Sep 20 16:12:25 2013
@@ -1,6 +1,6 @@
-// RUN: %clang -fsyntax-only -ffreestanding %s
-// RUN: %clang -fsyntax-only -ffreestanding -fno-lax-vector-conversions %s
-// RUN: %clangxx -fsyntax-only -ffreestanding -x c++ %s
+// RUN: %clang_cc1 -fsyntax-only -ffreestanding %s
+// RUN: %clang_cc1 -fsyntax-only -ffreestanding -fno-lax-vector-conversions %s
+// RUN: %clang_cc1 -fsyntax-only -ffreestanding -x c++ %s
#if defined(i386) || defined(__x86_64__)
More information about the cfe-commits
mailing list