f4a2713ac8
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
26 lines
568 B
Objective-C
26 lines
568 B
Objective-C
// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s
|
|
// RUN: %clang_cc1 -x objective-c++ -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s
|
|
|
|
@interface PBXTarget
|
|
{
|
|
|
|
PBXTarget * __weak _lastKnownTarget;
|
|
PBXTarget * __weak _KnownTarget;
|
|
PBXTarget * result;
|
|
}
|
|
- Meth;
|
|
@end
|
|
|
|
extern void foo();
|
|
@implementation PBXTarget
|
|
- Meth {
|
|
if (_lastKnownTarget != result)
|
|
foo();
|
|
if (result != _lastKnownTarget)
|
|
foo();
|
|
|
|
if (_lastKnownTarget != _KnownTarget)
|
|
foo();
|
|
}
|
|
|
|
@end
|