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.

llvm-svn: 191107
This commit is contained in:
Chandler Carruth 2013-09-20 21:12:25 +00:00
parent 7dd4d67322
commit 2c93cb2a6f
8 changed files with 16 additions and 14 deletions

View File

@ -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+{{}}

View File

@ -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

View File

@ -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>

View File

@ -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.

View File

@ -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.

View File

@ -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"

View File

@ -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>

View File

@ -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__)