summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-17 10:14:55 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-17 10:14:55 +0000
commit633d5b3ee275a143efc44cc066cb65e275f7c734 (patch)
treefcce2fda67603dc44f0a1e8a8c4b3cbcbc7c9095 /clang
parentcba26d4dc543bcd7b004fc36a7d26d0ea6f2864b (diff)
downloadbcm5719-llvm-633d5b3ee275a143efc44cc066cb65e275f7c734.tar.gz
bcm5719-llvm-633d5b3ee275a143efc44cc066cb65e275f7c734.zip
Use clang to run tests which include headers from the system.
llvm-svn: 89085
Diffstat (limited to 'clang')
-rw-r--r--clang/test/Sema/attr-malloc.c4
-rw-r--r--clang/test/Sema/expr-comma-c89.c1
-rw-r--r--clang/test/Sema/expr-comma.c1
-rw-r--r--clang/test/Sema/i-c-e.c2
-rw-r--r--clang/test/Sema/return.c2
-rw-r--r--clang/test/Sema/shift.c2
-rw-r--r--clang/test/Sema/wchar.c4
-rw-r--r--clang/test/SemaTemplate/example-dynarray.cpp2
8 files changed, 8 insertions, 10 deletions
diff --git a/clang/test/Sema/attr-malloc.c b/clang/test/Sema/attr-malloc.c
index 747f54b6867..6483ffc4c1a 100644
--- a/clang/test/Sema/attr-malloc.c
+++ b/clang/test/Sema/attr-malloc.c
@@ -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>
diff --git a/clang/test/Sema/expr-comma-c89.c b/clang/test/Sema/expr-comma-c89.c
index b2b17dc3359..ffe8b696f60 100644
--- a/clang/test/Sema/expr-comma-c89.c
+++ b/clang/test/Sema/expr-comma-c89.c
@@ -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);
diff --git a/clang/test/Sema/expr-comma.c b/clang/test/Sema/expr-comma.c
index 64079866ca9..3a05130eae3 100644
--- a/clang/test/Sema/expr-comma.c
+++ b/clang/test/Sema/expr-comma.c
@@ -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);
diff --git a/clang/test/Sema/i-c-e.c b/clang/test/Sema/i-c-e.c
index de279669922..6e14833166d 100644
--- a/clang/test/Sema/i-c-e.c
+++ b/clang/test/Sema/i-c-e.c
@@ -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>
diff --git a/clang/test/Sema/return.c b/clang/test/Sema/return.c
index cdd31059b3e..ad75cf1a0b6 100644
--- a/clang/test/Sema/return.c
+++ b/clang/test/Sema/return.c
@@ -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
diff --git a/clang/test/Sema/shift.c b/clang/test/Sema/shift.c
index 2516d1b8610..fdfebc589a7 100644
--- a/clang/test/Sema/shift.c
+++ b/clang/test/Sema/shift.c
@@ -1,4 +1,4 @@
-// RUN: clang-cc -Wall -fsyntax-only -verify %s
+// RUN: clang -Wall -fsyntax-only -Xclang -verify %s
#include <limits.h>
diff --git a/clang/test/Sema/wchar.c b/clang/test/Sema/wchar.c
index f8b3a304c74..9976aa8bb45 100644
--- a/clang/test/Sema/wchar.c
+++ b/clang/test/Sema/wchar.c
@@ -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>
diff --git a/clang/test/SemaTemplate/example-dynarray.cpp b/clang/test/SemaTemplate/example-dynarray.cpp
index 2b752b4f1f4..6f3e58e32ab 100644
--- a/clang/test/SemaTemplate/example-dynarray.cpp
+++ b/clang/test/SemaTemplate/example-dynarray.cpp
@@ -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>
OpenPOWER on IntegriCloud