Forbid driver use in Sema tests

This ports the last Sema tests over to use the frontend directly, and adds a
local lit substitution to disable inappropriate %clang usage under this
directory.

llvm-svn: 199348
This commit is contained in:
Alp Toker 2014-01-16 02:37:08 +00:00
parent b9411ce1f7
commit 11a71128b7
8 changed files with 12 additions and 8 deletions

View File

@ -0,0 +1,4 @@
config.substitutions = list(config.substitutions)
config.substitutions.insert(0,
(r'%clang\b',
"""*** Do not use the driver in Sema tests. ***""") )

View File

@ -1,5 +1,5 @@
// RUN: %clang -fsyntax-only %s 2>&1 | FileCheck %s // RUN: %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck %s
// RUN: %clang -fsyntax-only -fapple-pragma-pack %s 2>&1 | FileCheck -check-prefix=CHECK-APPLE %s // RUN: %clang_cc1 -fsyntax-only -fapple-pragma-pack %s 2>&1 | FileCheck -check-prefix=CHECK-APPLE %s
#pragma pack(push,1) #pragma pack(push,1)
#pragma pack(2) #pragma pack(2)

View File

@ -1,4 +1,4 @@
// RUN: %clang %s -fsyntax-only -Wignored-qualifiers -Wno-error=return-type -Xclang -verify -fblocks -Wno-unreachable-code -Wno-unused-value // RUN: %clang_cc1 %s -fsyntax-only -Wignored-qualifiers -Wno-error=return-type -verify -fblocks -Wno-unreachable-code -Wno-unused-value
// clang emits the following warning by default. // clang emits the following warning by default.
// With GCC, -pedantic, -Wreturn-type or -Wall are required to produce the // With GCC, -pedantic, -Wreturn-type or -Wall are required to produce the

View File

@ -1,4 +1,4 @@
// RUN: %clang -fsyntax-only -Xclang -verify %s // RUN: %clang_cc1 -fsyntax-only -verify %s
typedef union { typedef union {
int *ip; int *ip;
float *fp; float *fp;

View File

@ -1,4 +1,4 @@
// RUN: %clang -Wmissing-variable-declarations -fsyntax-only -Xclang -verify %s // RUN: %clang_cc1 -Wmissing-variable-declarations -fsyntax-only -verify %s
int vbad1; // expected-warning{{no previous extern declaration for non-static variable 'vbad1'}} int vbad1; // expected-warning{{no previous extern declaration for non-static variable 'vbad1'}}

View File

@ -1,4 +1,4 @@
// RUN: %clang %s -fsyntax-only -Xclang -verify -fblocks -Wunreachable-code -Wno-unused-value -Wno-covered-switch-default // RUN: %clang_cc1 %s -fsyntax-only -verify -fblocks -Wunreachable-code -Wno-unused-value -Wno-covered-switch-default
int halt() __attribute__((noreturn)); int halt() __attribute__((noreturn));
int live(); int live();

View File

@ -1,5 +1,5 @@
// RUN: %clang %s -fsyntax-only -Xclang -verify // RUN: %clang_cc1 %s -fsyntax-only -verify
// RUN: %clang %s -fsyntax-only -fshort-wchar -Xclang -verify -DSHORT_WCHAR // RUN: %clang_cc1 %s -fsyntax-only -fshort-wchar -verify -DSHORT_WCHAR
typedef __WCHAR_TYPE__ wchar_t; typedef __WCHAR_TYPE__ wchar_t;