minix/external/bsd/llvm/dist/clang/test/SemaObjC/access-property-getter.m
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

36 lines
863 B
Objective-C

// RUN: %clang_cc1 -verify %s
@protocol NSObject
- (oneway void)release;
@end
@protocol XCOutputStreams <NSObject>
@end
@interface XCWorkQueueCommandInvocation
{
id <XCOutputStreams> _outputStream;
}
@end
@interface XCWorkQueueCommandSubprocessInvocation : XCWorkQueueCommandInvocation
@end
@interface XCWorkQueueCommandLocalSubprocessInvocation : XCWorkQueueCommandSubprocessInvocation
@end
@interface XCWorkQueueCommandDistributedSubprocessInvocation : XCWorkQueueCommandSubprocessInvocation
@end
@interface XCWorkQueueCommandCacheFetchInvocation : XCWorkQueueCommandSubprocessInvocation
@end
@implementation XCWorkQueueCommandCacheFetchInvocation
- (id)harvestPredictivelyProcessedOutputFiles
{
_outputStream.release; // expected-warning {{property access result unused - getters should not be used for side effects}}
return 0;
}
@end