diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-06-06 22:32:07 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-06-06 22:32:07 +0000 |
commit | 4e633b56c07ccdc864639149e819ba27fbcda9b7 (patch) | |
tree | 589c20c8512c976e247f0dd7fe4c94f0baad1200 /clang/test/SemaObjC/cocoa-api-usage.m | |
parent | 63aebfb4aee03bd72f4cace716104c83c87c32ef (diff) | |
download | bcm5719-llvm-4e633b56c07ccdc864639149e819ba27fbcda9b7.tar.gz bcm5719-llvm-4e633b56c07ccdc864639149e819ba27fbcda9b7.zip |
Fix test/SemaObjC/cocoa-api-usage.m that broke via r158114.
llvm-svn: 158115
Diffstat (limited to 'clang/test/SemaObjC/cocoa-api-usage.m')
-rw-r--r-- | clang/test/SemaObjC/cocoa-api-usage.m | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/clang/test/SemaObjC/cocoa-api-usage.m b/clang/test/SemaObjC/cocoa-api-usage.m index 85e21154a9e..bed7ecde060 100644 --- a/clang/test/SemaObjC/cocoa-api-usage.m +++ b/clang/test/SemaObjC/cocoa-api-usage.m @@ -1,9 +1,5 @@ -// RUN: %clang_cc1 -triple x86_64-apple-darwin10 %s -fsyntax-only -Wobjc-cocoa-api -verify // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-arc %s -fsyntax-only -Wobjc-cocoa-api -verify -// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -x objective-c %s.fixed -fsyntax-only -// RUN: cp %s %t.m -// RUN: %clang_cc1 -triple x86_64-apple-darwin10 %t.m -fixit -Wobjc-cocoa-api -// RUN: diff %s.fixed %t.m +// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-arc -x objective-c %s.fixed -fsyntax-only // RUN: cp %s %t.m // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-arc %t.m -fixit -Wobjc-cocoa-api // RUN: diff %s.fixed %t.m @@ -82,7 +78,7 @@ typedef signed char BOOL; void foo() { NSString *str = M([NSString stringWithString:@"foo"]); // expected-warning {{redundant}} - str = [[NSString alloc] initWithString:@"foo"]; + str = [[NSString alloc] initWithString:@"foo"]; // expected-warning {{redundant}} NSArray *arr = [NSArray arrayWithArray:@[str]]; // expected-warning {{redundant}} NSDictionary *dict = [NSDictionary dictionaryWithDictionary:@{str: arr}]; // expected-warning {{redundant}} } |