diff options
Diffstat (limited to 'clang/test/ARCMT/objcmt-property-dot-syntax.m')
| -rw-r--r-- | clang/test/ARCMT/objcmt-property-dot-syntax.m | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/clang/test/ARCMT/objcmt-property-dot-syntax.m b/clang/test/ARCMT/objcmt-property-dot-syntax.m index 42aade5aca2..0e25abcb89e 100644 --- a/clang/test/ARCMT/objcmt-property-dot-syntax.m +++ b/clang/test/ARCMT/objcmt-property-dot-syntax.m @@ -37,3 +37,25 @@ P* fun(); - (P*) MethodReturnsPObj { return 0; } @end + +// rdar://19140267 +@interface Sub : P +@end + +@implementation Sub +- (int) Meth : (P*)array { + [super setCount : 100]; + + [super setCount : [array count]]; + + [[super PropertyReturnsPObj] setCount : [array count]]; + + [super setCount : (i1+i2*i3 - 100)]; + + return [super count] - + [(P*)0 count] + [array count] + + [fun() count] - + [[super PropertyReturnsPObj] count] + + [self->obj count]; +} +@end |

