]> granicus.if.org Git - clang/commitdiff
Make tests use the new clang -cc1 flag.
authorFariborz Jahanian <fjahanian@apple.com>
Mon, 14 Dec 2009 18:00:56 +0000 (18:00 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Mon, 14 Dec 2009 18:00:56 +0000 (18:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91303 91177308-0d34-0410-b5e6-96231b3b80d8

29 files changed:
test/CodeCompletion/objc-message.m
test/CodeGen/2008-08-25-incompatible-cond-expr.m
test/CodeGen/2009-01-21-invalid-debug-info.m
test/CodeGen/function-decay.m
test/CodeGen/rdr-6732143-dangling-block-reference.m
test/Coverage/ast-printing.m
test/Coverage/codegen-gnu.m
test/Coverage/codegen-next.m
test/Coverage/parse-callbacks.m
test/FixIt/fixit-objc.m
test/Index/TestClassDecl.m
test/Index/TestClassForwardDecl.m
test/Index/c-index-api-fn-scan.m
test/Index/c-index-api-loadTU-test.m
test/Index/c-index-getCursor-test.m
test/Index/objc-decls.m
test/Index/objc-message.m
test/PCH/method_pool.m
test/PCH/objc_exprs.m
test/PCH/objc_import.m
test/PCH/objc_methods.m
test/PCH/objc_property.m
test/Preprocessor/non_fragile_feature.m
test/Preprocessor/non_fragile_feature1.m
test/Preprocessor/objc-pp.m
test/Sema/block-as-object.m
test/Sema/rdar6248119.m
test/SemaTemplate/instantiate-function-1.mm
test/SemaTemplate/instantiate-objc-1.mm

index d16a745b71f5f7b7f1875c1c453d602d3584c0b1..58fc4f5d68f2e1ee5de1987bf2851a1a2f75111f 100644 (file)
@@ -23,13 +23,13 @@ void func() {
   Foo *obj = [Foo new];
   [obj xx];
 }
-// RUN: clang-cc -fsyntax-only -code-completion-at=%s:23:19 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
+// RUN: clang -cc1 -fsyntax-only -code-completion-at=%s:23:19 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
 // CHECK-CC1: categoryClassMethod : 0
 // CHECK-CC1: classMethod1:withKeyword: : 0
 // CHECK-CC1: classMethod2 : 0
 // CHECK-CC1: new : 0
 // CHECK-CC1: protocolClassMethod : 0
-// RUN: clang-cc -fsyntax-only -code-completion-at=%s:24:8 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
+// RUN: clang -cc1 -fsyntax-only -code-completion-at=%s:24:8 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
 // CHECK-CC2: categoryInstanceMethod : 0
 // CHECK-CC2: instanceMethod1 : 0
 // CHECK-CC2: protocolInstanceMethod : 0
index 3cc42d89f6fa80190dee9fefcc3bc13a0391acf4..fa9b1970f7fd31c7f5b57c7379f731b203ac6ba8 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -emit-llvm -o %t %s
+// RUN: clang -cc1 -emit-llvm -o %t %s
 
 @protocol P0
 @end
index 2662b922a03c1b10256001588c75c5bbf0d332ae..1c1028b4ea981deccce991ff1bf20e4c428c780f 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -S -g -o %t.s %s
+// RUN: clang -cc1 -S -g -o %t.s %s
 
 // FIXME: This test case can be removed at some point (since it will
 // no longer effectively test anything). The reason it was causing
index 5652fdbb21eaef72116130fc00e94b3d62dcaa49..4b8e3602d46081b56f97026e57cdd889074b0674 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc %s -emit-llvm -o -
+// RUN: clang -cc1 %s -emit-llvm -o -
 
 @interface I0 @end
 @implementation I0
index 2d1baa62200930c6d5e6e229cf5470d373302b01..90641dd083cb5f633648b6e862b9590e2c97b5d3 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -triple x86_64-apple-darwin9 -emit-llvm %s -o -
+// RUN: clang -cc1 -triple x86_64-apple-darwin9 -emit-llvm %s -o -
 
 void f0(id x) {
   @synchronized (x) {      
index 1b812288fed253e0a784e0c684061989431cd10b..a864e2d72b881e520dfe9ae9d354d891636799c4 100644 (file)
@@ -1,5 +1,5 @@
-// RUN: clang-cc -fsyntax-only %s
-// RUN: clang-cc -ast-print %s
-// RUN: clang-cc -ast-dump %s
+// RUN: clang -cc1 -fsyntax-only %s
+// RUN: clang -cc1 -ast-print %s
+// RUN: clang -cc1 -ast-dump %s
 
 #include "objc-language-features.inc"
index bc8d6d642e41bf9b98cc9fa71fa91ece11de8164..194809261458aee42db7811dbb86d7ebeab43cfa 100644 (file)
@@ -1,3 +1,3 @@
-// RUN: clang-cc -triple i386-unknown-unknown -fgnu-runtime -emit-llvm -o %t %s
+// RUN: clang -cc1 -triple i386-unknown-unknown -fgnu-runtime -emit-llvm -o %t %s
 
 #include "objc-language-features.inc"
index f211a5914e55a8e426a68c64a57525dc9824d0b4..d78f93e61d2d7faec1a5444a4c663a8002f99f9d 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -emit-llvm -o %t %s
-// RUN: clang-cc -g -emit-llvm -o %t %s
+// RUN: clang -cc1 -emit-llvm -o %t %s
+// RUN: clang -cc1 -g -emit-llvm -o %t %s
 
 #include "objc-language-features.inc"
index 310a1a6f6e288cf66d3e152674a384a970150e09..7666d19432d3860234bb1dae7ad9b76d2a342c5e 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -parse-noop %s
-// RUN: clang-cc -parse-print-callbacks %s
+// RUN: clang -cc1 -parse-noop %s
+// RUN: clang -cc1 -parse-print-callbacks %s
 
 #include "objc-language-features.inc"
index 21aebfe3a968b0ad6dd2a9051ef93a3efd9da7f4..cdf2057290e37c438d2b43cd3f9a3078050bfaaf 100644 (file)
@@ -1,5 +1,5 @@
-// RUN: clang-cc -pedantic -fixit %s -o %t
-// RUN: clang-cc -pedantic -x objective-c %t -verify
+// RUN: clang -cc1 -pedantic -fixit %s -o %t
+// RUN: clang -cc1 -pedantic -x objective-c %t -verify
 
 /* This is a test of the various code modification hints that are
    provided as part of warning or extension diagnostics. All of the
index 9009f78e574e8df2aa7201af29300fa2b1c1a348..12ae4f45162013ece56802ed2d6120f066d4b3b2 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -emit-pch -x objective-c %s -o %t.ast
+// RUN: clang -cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -emit-pch -x objective-c %s -o %t.ast
 // RUN: c-index-test -test-file-scan %t.ast %s | FileCheck -check-prefix=scan %s
 // RUN: c-index-test -test-load-tu %t.ast local | FileCheck -check-prefix=load %s
 
index 31b7c6c170c0395a80c9962bc3b4788f118c04e0..db9a1eb5c7af9c786dc8f75e6c8622a32e2ca199 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -emit-pch -x objective-c %s -o %t.ast
+// RUN: clang -cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -emit-pch -x objective-c %s -o %t.ast
 // RUN: c-index-test -test-file-scan %t.ast %s | FileCheck -check-prefix=scan %s
 // RUN: c-index-test -test-load-tu %t.ast local | FileCheck -check-prefix=load %s
 
index 3e2c9c272a20c39eb179ae09ceca9ae510614fce..0350d87b39e4c9f069accbca309c7ac37df04907 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -emit-pch -x objective-c %s -o %t.ast
+// RUN: clang -cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -emit-pch -x objective-c %s -o %t.ast
 // RUN: c-index-test -test-load-tu %t.ast scan-function | FileCheck %s
 
 
index 1d5a9a8931561212e29b4c0c47063267f3f4b856..446f588c4f9dc58e305c2ea316cdefc76a455d5f 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -emit-pch -x objective-c %s -o %t.ast
+// RUN: clang -cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -emit-pch -x objective-c %s -o %t.ast
 // RUN: c-index-test -test-load-tu %t.ast all | FileCheck %s
 
 
index 3653a9c2e21488163465aa94cf34294a6354f846..d6081bc9de8c63549d0f091d27caba5810205cc0 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -emit-pch -x objective-c %s -o %t.ast
+// RUN: clang -cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -emit-pch -x objective-c %s -o %t.ast
 // RUN: c-index-test -test-file-scan %t.ast %s | FileCheck %s
 @interface Foo 
 {
index ff396788771df3f190ef196c05dcd04a723058ba..62a43da007b3a06d876fa825724ee2c60b4ce5da 100644 (file)
@@ -1,5 +1,5 @@
-// RUN: clang-cc -emit-pch %S/Inputs/t1.m -o %t1.m.ast
-// RUN: clang-cc -emit-pch %S/Inputs/t2.m -o %t2.m.ast
+// RUN: clang -cc1 -emit-pch %S/Inputs/t1.m -o %t1.m.ast
+// RUN: clang -cc1 -emit-pch %S/Inputs/t2.m -o %t2.m.ast
 
 // RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/Inputs/t1.m:12:12 -print-decls > %t
 // RUN: cat %t | count 2
index de61278af87e81c6b71dbd992439f8c81330976a..568ca9494f5573a84616a12633b1de293f154e21 100644 (file)
@@ -1,5 +1,5 @@
-// RUN: clang-cc -emit-pch %S/Inputs/t1.m -o %t1.m.ast
-// RUN: clang-cc -emit-pch %S/Inputs/t2.m -o %t2.m.ast
+// RUN: clang -cc1 -emit-pch %S/Inputs/t1.m -o %t1.m.ast
+// RUN: clang -cc1 -emit-pch %S/Inputs/t2.m -o %t2.m.ast
 
 // RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/Inputs/objc.h:5:13 -print-refs > %t
 // RUN: cat %t | count 1
index 053438828e36cf7e880157794ae962bb3d49c3ad..17e2420081ff16588229456688939638c36c9199 100644 (file)
@@ -1,9 +1,9 @@
 // Test this without pch.
-// RUN: clang-cc -include %S/method_pool.h -fsyntax-only -verify %s
+// RUN: clang -cc1 -include %S/method_pool.h -fsyntax-only -verify %s
 
 // Test with pch.
-// RUN: clang-cc -x objective-c -emit-pch -o %t %S/method_pool.h
-// RUN: clang-cc -include-pch %t -fsyntax-only -verify %s 
+// RUN: clang -cc1 -x objective-c -emit-pch -o %t %S/method_pool.h
+// RUN: clang -cc1 -include-pch %t -fsyntax-only -verify %s 
 
 int message_id(id x) {
    return [x instMethod:17]; // expected-warning{{multiple methods}}
index 9eb5a113a2470d136589440995865943e78b8957..0c12b8e177fcc8c4a7d1c5e0a82d3bf1ee22fabb 100644 (file)
@@ -1,9 +1,9 @@
 // Test this without pch.
-// RUN: clang-cc -fblocks -include %S/objc_exprs.h -fsyntax-only -verify %s
+// RUN: clang -cc1 -fblocks -include %S/objc_exprs.h -fsyntax-only -verify %s
 
 // Test with pch.
-// RUN: clang-cc -x objective-c-header -emit-pch -fblocks -o %t %S/objc_exprs.h
-// RUN: clang-cc -fblocks -include-pch %t -fsyntax-only -verify %s 
+// RUN: clang -cc1 -x objective-c-header -emit-pch -fblocks -o %t %S/objc_exprs.h
+// RUN: clang -cc1 -fblocks -include-pch %t -fsyntax-only -verify %s 
 
 // Expressions
 int *A1 = (objc_string)0;   // expected-warning {{aka 'id'}}
index 12893861585aa499e4db47e6ca16049eb09535cd..c109f4083660b31993ecc147a21c05a819c83f6d 100644 (file)
@@ -1,9 +1,9 @@
 // Test this without pch.
-// RUN: clang-cc -include %S/objc_import.h -fsyntax-only -verify %s
+// RUN: clang -cc1 -include %S/objc_import.h -fsyntax-only -verify %s
 
 // Test with pch.
-// RUN: clang-cc -x objective-c -emit-pch -o %t %S/objc_import.h
-// RUN: clang-cc -include-pch %t -fsyntax-only -verify %s 
+// RUN: clang -cc1 -x objective-c -emit-pch -o %t %S/objc_import.h
+// RUN: clang -cc1 -include-pch %t -fsyntax-only -verify %s 
 
 #import "objc_import.h"
 
index 136e39706c82f46b2f9bdedfa5d5089bf1910fb5..a60ffad4f2a15ea516346c1fd38c9225a8c5602b 100644 (file)
@@ -1,9 +1,9 @@
 // Test this without pch.
-// RUN: clang-cc -include %S/objc_methods.h -fsyntax-only -verify %s
+// RUN: clang -cc1 -include %S/objc_methods.h -fsyntax-only -verify %s
 
 // Test with pch.
-// RUN: clang-cc -x objective-c -emit-pch -o %t %S/objc_methods.h
-// RUN: clang-cc -include-pch %t -fsyntax-only -verify %s 
+// RUN: clang -cc1 -x objective-c -emit-pch -o %t %S/objc_methods.h
+// RUN: clang -cc1 -include-pch %t -fsyntax-only -verify %s 
 
 void func() {
  TestPCH *xx;
index 5992787fa4222a9ea913260e10fed2323b6889d0..17c3a729c5c656cd0347e6b081271b1ff16d68a7 100644 (file)
@@ -1,9 +1,9 @@
 // Test this without pch.
-// RUN: clang-cc -include %S/objc_property.h -fsyntax-only -verify %s
+// RUN: clang -cc1 -include %S/objc_property.h -fsyntax-only -verify %s
 
 // Test with pch.
-// RUN: clang-cc -x objective-c -emit-pch -o %t %S/objc_property.h
-// RUN: clang-cc -include-pch %t -fsyntax-only -verify %s 
+// RUN: clang -cc1 -x objective-c -emit-pch -o %t %S/objc_property.h
+// RUN: clang -cc1 -include-pch %t -fsyntax-only -verify %s 
 
 void func() {
  TestProperties *xx = [TestProperties alloc];
index cb6bc012f1c271c11d4d2c27b3802c98c139a1e3..dbf1f9a797e2661336ddd8b0e04232e96ad3a6d6 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fobjc-nonfragile-abi %s
+// RUN: clang -cc1 -fobjc-nonfragile-abi %s
 #ifndef __has_feature
 #error Should have __has_feature
 #endif
index 59f665b5464987148f22b5cc2a665da6949a309b..5943e01b517eefaf5dc794dc4a3a5d2177ec762e 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -triple i386-unknown-unknown %s
+// RUN: clang -cc1 -triple i386-unknown-unknown %s
 #ifndef __has_feature
 #error Should have __has_feature
 #endif
index 977789e38f1cd36f95233af3d35810cc7ab30086..9f375efec2c0236e6289094ff10ca7d5e612f711 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc %s -fsyntax-only -verify -pedantic
+// RUN: clang -cc1 %s -fsyntax-only -verify -pedantic
 
 #import <stdint.h>  // no warning on #import in objc mode.
 
index 219b1a065325e8e4e296cd5b555a2b7b5891925e..1197a1972feca10f41cf9a68d6c4d5f8d0df925b 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc %s -fsyntax-only -verify -fblocks
+// RUN: clang -cc1 %s -fsyntax-only -verify -fblocks
 
 @interface Whatever
 - copy;
index 631c7b35a992f37f6441a1f37b7c89aa26a4fedf..d4ee305c2912a6ea6dd535e2a5848cb1d5322e83 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fsyntax-only %s -verify
+// RUN: clang -cc1 -fsyntax-only %s -verify
 // Test case for: 
 //   <rdar://problem/6248119> @finally doesn't introduce a new scope
 
index c119ab5da8b98624e26fc98690d5eca9e5362114..aa4b941d39cf854e9aa3c7cec3713b31de7e87c7 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
 // XFAIL: *
 
 template<typename T> struct Member0 {
index 829acb2e199b1d21cb3a942ed2249b6122b58ead..093be4e27155931717dade2684ada8cda9aad871 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
 
 // Obj-C string literal expressions
 template <typename T> struct StringTest {