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 | 8eaefdc6aed76e26619caffed030a57438280897 (patch) | |
tree | 17d1635683348a52233cd3af87298c587f011277 /test/FixIt/fixit-static-object-decl.m | |
parent | a0651c5f5d1c8928d3ae062435ed9cf0aa0d04ba (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136103 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FixIt/fixit-static-object-decl.m')
-rw-r--r-- | test/FixIt/fixit-static-object-decl.m | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/FixIt/fixit-static-object-decl.m b/test/FixIt/fixit-static-object-decl.m index c9661e275e..65437dbfeb 100644 --- a/test/FixIt/fixit-static-object-decl.m +++ b/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]; } |