summaryrefslogtreecommitdiffstats
path: root/clang/test/ARCMT/objcmt-property-dot-syntax.m.result
blob: 88006e9fc59ea56e975e46acc76a56898418866f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// RUN: rm -rf %t
// RUN: %clang_cc1 -objcmt-migrate-property-dot-syntax -mt-migrate-directory %t %s -x objective-c -fobjc-runtime-has-weak -fobjc-arc -triple x86_64-apple-darwin11
// RUN: c-arcmt-test -mt-migrate-directory %t | arcmt-test -verify-transformed-files %s.result
// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c -fobjc-runtime-has-weak -fobjc-arc %s.result

// rdar://18498572
@interface NSObject @end

@interface P : NSObject
{
  P* obj;
  int i1, i2, i3;
}
@property int count;
@property (copy) P* PropertyReturnsPObj;
- (P*) MethodReturnsPObj;
@end

P* fun();

@implementation P
- (int) Meth : (P*)array {
  obj.count = 100;

  ((P*)0).count = array.count;

  obj.PropertyReturnsPObj.count = array.count;

  obj.count = (i1+i2*i3 - 100);

  return obj.count -
         ((P*)0).count + array.count +
         fun().count - 
         obj.PropertyReturnsPObj.count +
         self->obj.count;
}

- (P*) MethodReturnsPObj { return 0; }
@end
OpenPOWER on IntegriCloud