diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2011-07-26 17:58:54 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2011-07-26 17:58:54 +0000 |
| commit | 6507135e12b5463df3985f052f05cf6b7a02189d (patch) | |
| tree | 60587e35f75cfcfc3bab43080484cad91c010961 /clang/test | |
| parent | cb31193670a75c2a7204b3f0cf2b74977521629f (diff) | |
| download | bcm5719-llvm-6507135e12b5463df3985f052f05cf6b7a02189d.tar.gz bcm5719-llvm-6507135e12b5463df3985f052f05cf6b7a02189d.zip | |
Provide fixit for static use of objective-c type
in few more places and in each instance, fix up
the type to the expected type. // rdar://9603056
llvm-svn: 136103
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/FixIt/fixit-static-object-decl.m | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/FixIt/fixit-static-object-decl.m b/clang/test/FixIt/fixit-static-object-decl.m index c9661e275e0..65437dbfeb6 100644 --- a/clang/test/FixIt/fixit-static-object-decl.m +++ b/clang/test/FixIt/fixit-static-object-decl.m @@ -9,10 +9,21 @@ // RUN: %clang_cc1 -fsyntax-only -Werror -x objective-c++ %t // rdar://9603056 +@interface S @end + @interface NSArray +{ +@public + S iS; +} + (id) arrayWithObjects; @end +NSArray func() { + NSArray P; + return P; +} + int main() { NSArray pluginNames = [NSArray arrayWithObjects]; } |

