]> granicus.if.org Git - clang/commitdiff
Use clang to run tests which include headers from the system.
authorDaniel Dunbar <daniel@zuster.org>
Tue, 17 Nov 2009 10:14:55 +0000 (10:14 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 17 Nov 2009 10:14:55 +0000 (10:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89085 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/attr-malloc.c
test/Sema/expr-comma-c89.c
test/Sema/expr-comma.c
test/Sema/i-c-e.c
test/Sema/return.c
test/Sema/shift.c
test/Sema/wchar.c
test/SemaTemplate/example-dynarray.cpp

index 747f54b68675416946d9b9914b26b187ad05753c..6483ffc4c1a65d7239680beaf4535ff049169b49 100644 (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>
 
index b2b17dc335911e8bab86d9fcbe66dcb4d0dc93fb..ffe8b696f60897d91e22715c47d8bacacff21645 100644 (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);
 
index 64079866ca9943cacdd02eb39ec49d55c47d2012..3a05130eae3255d2fb27e55d249cb45c8f4af301 100644 (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);
 
index de279669922b0586150f0090055e71bd5c309c66..6e14833166d802e1f835a954ca8b7efb6c0e44d0 100644 (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>
index cdd31059b3e7b2ef7301d210aa7e119fa5d13aeb..ad75cf1a0b6d2cce8af7bbc9ba594b922b96f092 100644 (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 
index 2516d1b861072513777819d23a86bd4a68d22949..fdfebc589a77bc5fae012d5e057e015c2cfae661 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -Wall -fsyntax-only -verify %s
+// RUN: clang -Wall -fsyntax-only -Xclang -verify %s
 
 #include <limits.h>
 
index f8b3a304c74819da21e0fb9422158613c7d1afac..9976aa8bb45de182141627ec2a4871e31ba2146a 100644 (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>
  
index 2b752b4f1f49020b3c34146f6b7b465d69a33026..6f3e58e32ab68a1fc0d8398b70bcb06993be7590 100644 (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>