blob: d8d5459aee239ef25ab76d01eeb2c246571b8932 [file] [log] [blame]
John McCall260611a2012-06-20 06:18:46 +00001// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s
2// RUN: %clang_cc1 -x objective-c++ -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -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