Move a bunch of tests to directly use the CC1 layer. This at least saves

a subprocess invocation which is pretty significant on Windows. It also
likely saves a bunch of thrashing the host machine needlessly. Finally
it makes the tests much more predictable and less dependent on the host.
For example 'header_lookup1.c' was passing '-fno-ms-extensions' just to
thwart the host detection adding it into the compilation. By runnig CC1
directly we don't have to deal with such oddities.

llvm-svn: 199308
This commit is contained in:
Chandler Carruth 2014-01-15 09:08:07 +00:00
parent f9814063c6
commit b653131345
6 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
// RUN: echo "#include <stddef.h>" > %t.h
// RUN: %clang -S -g -include %t.h %s -emit-llvm -o %t.ll
// RUN: %clang_cc1 -S -g -include %t.h %s -emit-llvm -o %t.ll
// RUN: grep "i32 5" %t.ll
// outer is at line number 5.
int outer = 42;

View File

@ -1,4 +1,4 @@
// RUN: %clang -target powerpc64-unknown-linux-gnu -maltivec -fsyntax-only %s
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -faltivec -fsyntax-only %s
// PR16456: Verify that bool, true, false are treated as context-sensitive
// keywords (and therefore available for use as identifiers) when in

View File

@ -1,2 +1,2 @@
// RUN: %clang -fno-ms-extensions %s -E | grep 'stddef.h.*3'
// RUN: %clang_cc1 %s -E | grep 'stddef.h.*3'
#include <stddef.h>

View File

@ -1,5 +1,5 @@
// RUN: %clang -Xclang -verify -fsyntax-only %s
// RUN: %clang -emit-llvm -S -o %t %s
// RUN: %clang_cc1 -verify -fsyntax-only %s
// RUN: %clang_cc1 -emit-llvm -o %t %s
#include <stddef.h>

View File

@ -1,4 +1,4 @@
// RUN: %clang %s -ffreestanding -Wno-int-to-pointer-cast -fsyntax-only -Xclang -verify -pedantic -fpascal-strings -std=c99
// RUN: %clang_cc1 %s -ffreestanding -Wno-int-to-pointer-cast -fsyntax-only -verify -pedantic -fpascal-strings -std=c99
#include <stdint.h>
#include <limits.h>

View File

@ -1,4 +1,4 @@
// RUN: %clang -Wall -Wshift-sign-overflow -ffreestanding -fsyntax-only -Xclang -verify %s
// RUN: %clang_cc1 -Wall -Wshift-sign-overflow -ffreestanding -fsyntax-only -verify %s
#include <limits.h>