Use clang to run tests which include headers from the system.

llvm-svn: 89085
This commit is contained in:
Daniel Dunbar 2009-11-17 10:14:55 +00:00
parent cba26d4dc5
commit 633d5b3ee2
8 changed files with 8 additions and 10 deletions

View File

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

View File

@ -1,7 +1,6 @@
// RUN: clang-cc %s -fsyntax-only -verify -std=c99
// rdar://6095180
#include <assert.h>
struct s { char c[17]; };
extern struct s foo(void);

View File

@ -1,7 +1,6 @@
// RUN: clang-cc %s -fsyntax-only -verify -std=c89
// rdar://6095180
#include <assert.h>
struct s { char c[17]; };
extern struct s foo(void);

View File

@ -1,4 +1,4 @@
// RUN: clang-cc %s -fsyntax-only -verify -pedantic -fpascal-strings
// RUN: clang %s -fsyntax-only -Xclang -verify -pedantic -fpascal-strings
#include <stdint.h>
#include <limits.h>

View File

@ -1,4 +1,4 @@
// RUN: clang-cc %s -fsyntax-only -verify -fblocks
// RUN: clang %s -fsyntax-only -Xclang -verify -fblocks
// clang emits the following warning by default.
// With GCC, -pedantic, -Wreturn-type or -Wall are required to produce the

View File

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

View File

@ -1,5 +1,5 @@
// RUN: clang-cc %s -fsyntax-only -verify
// RUN: clang-cc %s -fsyntax-only -fshort-wchar -verify -DSHORT_WCHAR
// RUN: clang %s -fsyntax-only -Xclang -verify
// RUN: clang %s -fsyntax-only -fshort-wchar -Xclang -verify -DSHORT_WCHAR
#include <wchar.h>

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm-only %s
// RUN: clang -emit-llvm -S -o %t %s
#include <stddef.h>
#include <stdlib.h>
#include <assert.h>