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

24 files changed:
test/Parser/check-objc2-syntax-1.m
test/Parser/check-syntax-1.m
test/Parser/encode.m
test/Parser/enhanced-proto-1.m
test/Parser/expressions.m
test/Parser/method-prototype-1.m
test/Parser/objc-alias-printing.m
test/Parser/objc-category-neg-1.m
test/Parser/objc-forcollection-1.m
test/Parser/objc-forcollection-neg-2.m
test/Parser/objc-forcollection-neg.m
test/Parser/objc-foreach-syntax.m
test/Parser/objc-init.m
test/Parser/objc-interfaces.m
test/Parser/objc-messaging-1.m
test/Parser/objc-messaging-neg-1.m
test/Parser/objc-missing-impl.m
test/Parser/objc-property-syntax.m
test/Parser/objc-quirks.m
test/Parser/objc-synthesized-recover.m
test/Parser/objc-try-catch-1.m
test/Parser/objc-type-printing.m
test/Parser/prefix-attributes.m
test/Parser/selector-1.m

index f596e9ba0f37f513aa84e02a71b4a1b09ccdaddf..aafb2e090a6a32351516bf9f758e0195ada4f9c6 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
 
 @interface Subclass 
 + (int)magicNumber;
index af1b7a8b714ac7fabd8b4f3c246e38c05187f3e1..8ad207270c3ff0ad0130b9f2bcf2ff5ea9347d2f 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
 
 int @interface bla  ; // expected-error {{cannot combine with previous 'int' declaration specifier}}
 @end
index 1e088a01151147d7c4a45c1597522b1625878832..15e9fe9828be1252c7c35caa01449bb01d7acdf9 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
 
 int main(void) {
   const char ch = @encode(char *)[2];
index 1f42ec2efbb4909cc43f55a931e4cd73aafc9d57..b80eb7d09d8fab5dbcea36c2e8a137a79e2a0c91 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
 
 @protocol MyProto1 
 @optional
index e9e41216f98627f4e9fe3df5dfab1fbe85b3d3a9..9adc34af1fc7c3da0bd493e9471621aa0bc66e5e 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -parse-noop %s
+// RUN: clang -cc1 -parse-noop %s
 
 void test1() {
   @"s";            // expected-warning {{expression result unused}}
index 1d535de8c14045ada6b568f328a77e18241884da..86a912f46eb771e076cb1df9ef16d3061f211b03 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc %s -parse-noop
+// RUN: clang -cc1 %s -parse-noop
 @interface MyObject 
 - (void) bycopy  : (int) woodo, ... ;
 - (void) break  : (int) woodo, ... ;
index e121bed0aea86dcc382d7601264e901d8efaaac4..afb522cfa3d9e9a7def86f0bb0776141f0a9c24b 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -ast-print %s
+// RUN: clang -cc1 -ast-print %s
 
 @protocol P1 @end
 @protocol P2 @end
index 6c1bd29517369acf55c9c23ca7d50f5e6b337a09..957dbde2d7fa5e02742eca552ac200e7343d3b9e 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
 
 void __assert_rtn(const char *, const char *, int, const char *) __attribute__((__noreturn__));
 static __inline__ int __inline_isfinitef (float ) __attribute__ ((always_inline));
index 21ec308a28a1a17391057d5d1d5ba2f01deaf6f7..6075332dcd5bcf1ec80f987e8a37a049e9a6bc97 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fsyntax-only %s
+// RUN: clang -cc1 -fsyntax-only %s
 
 typedef struct objc_class *Class;
 typedef struct objc_object {
index ddb279b6f7c14866bc5e4bfa37bdb053676eb013..9019d441a60abe0751b5243ade986455662fe2a7 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
 
 typedef struct objc_class *Class;
 typedef struct objc_object {
index 0f2bb90df85f6755f52b14f819c9a7f2b90270bf..464759e0d17503864884369a047b48d58839f6d7 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
 
 typedef struct objc_class *Class;
 typedef struct objc_object {
index 977dccc88b1d2368eaac18cf749e46d3a21ad10a..294a6029378cd4b3ad10b6f044d445bb39f3162e 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
 
 
 
index bc88e33e3720bec3ccba7069836f3c4c4b9f8f8e..b3f033ea25f1d7c2f2f780ee1d7a9ad49cf64113 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fsyntax-only -verify %s -pedantic
+// RUN: clang -cc1 -fsyntax-only -verify %s -pedantic
 // rdar://5707001
 
 @interface NSNumber;
index 7aa672901fffb90ca214fd99e680a410f3e7aeed..fdb52e763f2c6cf66746f1b532c4373bdfcfe2ad 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc %s -fsyntax-only -verify
+// RUN: clang -cc1 %s -fsyntax-only -verify
 
 // Test features and error recovery for objc interfaces.
 
index 4a36fc950fa8c99c97a0ad8d2f018d2180aaa7ee..2ee3639b06cbe98219e48a75a09192ec294d5039 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc %s -parse-noop
+// RUN: clang -cc1 %s -parse-noop
 int main ()
 {
        int i,j;
index 0344566aa87a855bdae787f6e6d4313932cb97c8..4dcbb79a996ad8638b630153ec9eacc91e608bfa 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
 
 int main() {
   id a;
index 9108451f1bff8c71c9e9681e91cb504d9bd3cc72..392b26f63838cc4653f1e64e5a7b07936b770fcc 100644 (file)
@@ -1,2 +1,2 @@
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
 @end // expected-warning {{@end must appear in an @implementation context}}
index cf75aaa2d5a2f53fab30b5393e51cbca3de123b5..294fb541e47481402d7cc562d1ba6ddd16d38884 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
 
 @interface MyClass {
 
index 2913b580c5fc63f96e30ce083f5ff202fe6a2ba8..233739bc38d0d403b94b208a358b2928c4c54b9d 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
 
 // FIXME: This is a horrible error message here. Fix.
 int @"s" = 5;  // expected-error {{prefix attribute must be}}
index 7de1a57942226725a2b6734acd3c82ac70df932e..dbe9b1d93b615578accbf5bedc1fd953f828a632 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
 
 @interface I1 
 {
index 98c6d16ff6987d2f4c4ce9157c2ac015d5b4df46..25b52794a77d13c905d9f1e40691dbe2a3b16afe 100644 (file)
@@ -1,5 +1,5 @@
-// RUN: clang-cc -fsyntax-only -verify %s
-// RUN: clang-cc -fsyntax-only -verify -x objective-c++ %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify -x objective-c++ %s
 void * proc();
 
 @interface NSConstantString
index d9ad70474f2b7f902907da2e1ccf3aa7d051790d..e619b72ab6b198da1be8b5c3a78dc04011949bf2 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -ast-print %s
+// RUN: clang -cc1 -ast-print %s
 
 @protocol P1 @end
 @protocol P2 @end
index bb6d04da2a082193e2bc9d0f190927bd0dda9bc3..31be34076fe3412d00dc17faf209618bf02d9bff 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -verify -fsyntax-only %s
+// RUN: clang -cc1 -verify -fsyntax-only %s
 
 __attribute__((deprecated)) @class B; // expected-error {{prefix attribute must be followed by an interface or protocol}}
 
index 85ef919689dfb33906acfb7e3e6124b023c89ae3..fdc74ff4b424c42b8ce990abaccd948815ae0749 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -parse-noop %s 
+// RUN: clang -cc1 -parse-noop %s 
 
 int main() {
  SEL s = @selector(retain);