blob: 75cf689737b4106b2cbc58f2cc105b71e0d8d1f8 [file] [log] [blame]
John McCalld1e40d52011-10-02 01:16:38 +00001// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-fragile-abi -fobjc-gc -emit-llvm -o %t %s
2// RUN: %clang_cc1 -x objective-c++ -triple i386-apple-darwin9 -fobjc-fragile-abi -fobjc-gc -emit-llvm -o %t %s
Fariborz Jahaniana6e27792009-03-06 23:05:56 +00003
4@interface PBXTarget
5{
6
7PBXTarget * __weak _lastKnownTarget;
8PBXTarget * __weak _KnownTarget;
9PBXTarget * result;
10}
11- Meth;
12@end
13
Fariborz Jahanian27b7aa02010-05-20 18:22:28 +000014extern void foo();
Fariborz Jahaniana6e27792009-03-06 23:05:56 +000015@implementation PBXTarget
16- Meth {
17 if (_lastKnownTarget != result)
18 foo();
19 if (result != _lastKnownTarget)
20 foo();
21
22 if (_lastKnownTarget != _KnownTarget)
23 foo();
24}
25
26@end