diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-17 10:14:55 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-17 10:14:55 +0000 |
commit | 8ee15dc2e2a9573b2852326650813111d7647909 (patch) | |
tree | ffa5c04912c444634ad3550976d1571f0d0320ae | |
parent | d71b6410f979f6467db88f026a854375260dba41 (diff) | |
download | clang-8ee15dc2e2a9573b2852326650813111d7647909.tar.gz clang-8ee15dc2e2a9573b2852326650813111d7647909.tar.bz2 clang-8ee15dc2e2a9573b2852326650813111d7647909.tar.xz |
Use clang to run tests which include headers from the system.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89085 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Sema/attr-malloc.c | 4 | ||||
-rw-r--r-- | test/Sema/expr-comma-c89.c | 1 | ||||
-rw-r--r-- | test/Sema/expr-comma.c | 1 | ||||
-rw-r--r-- | test/Sema/i-c-e.c | 2 | ||||
-rw-r--r-- | test/Sema/return.c | 2 | ||||
-rw-r--r-- | test/Sema/shift.c | 2 | ||||
-rw-r--r-- | test/Sema/wchar.c | 4 | ||||
-rw-r--r-- | test/SemaTemplate/example-dynarray.cpp | 2 |
8 files changed, 8 insertions, 10 deletions
diff --git a/test/Sema/attr-malloc.c b/test/Sema/attr-malloc.c index 747f54b686..6483ffc4c1 100644 --- a/test/Sema/attr-malloc.c +++ b/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/test/Sema/expr-comma-c89.c b/test/Sema/expr-comma-c89.c index b2b17dc335..ffe8b696f6 100644 --- a/test/Sema/expr-comma-c89.c +++ b/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/test/Sema/expr-comma.c b/test/Sema/expr-comma.c index 64079866ca..3a05130eae 100644 --- a/test/Sema/expr-comma.c +++ b/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/test/Sema/i-c-e.c b/test/Sema/i-c-e.c index de27966992..6e14833166 100644 --- a/test/Sema/i-c-e.c +++ b/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/test/Sema/return.c b/test/Sema/return.c index cdd31059b3..ad75cf1a0b 100644 --- a/test/Sema/return.c +++ b/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/test/Sema/shift.c b/test/Sema/shift.c index 2516d1b861..fdfebc589a 100644 --- a/test/Sema/shift.c +++ b/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/test/Sema/wchar.c b/test/Sema/wchar.c index f8b3a304c7..9976aa8bb4 100644 --- a/test/Sema/wchar.c +++ b/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/test/SemaTemplate/example-dynarray.cpp b/test/SemaTemplate/example-dynarray.cpp index 2b752b4f1f..6f3e58e32a 100644 --- a/test/SemaTemplate/example-dynarray.cpp +++ b/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> |