1// RUN: %clang_cc1 -verify %s 2 3@protocol NSObject 4- (oneway void)release; 5@end 6 7@protocol XCOutputStreams <NSObject> 8@end 9 10 11@interface XCWorkQueueCommandInvocation 12{ 13 id <XCOutputStreams> _outputStream; 14} 15@end 16 17@interface XCWorkQueueCommandSubprocessInvocation : XCWorkQueueCommandInvocation 18@end 19 20@interface XCWorkQueueCommandLocalSubprocessInvocation : XCWorkQueueCommandSubprocessInvocation 21@end 22 23@interface XCWorkQueueCommandDistributedSubprocessInvocation : XCWorkQueueCommandSubprocessInvocation 24@end 25 26@interface XCWorkQueueCommandCacheFetchInvocation : XCWorkQueueCommandSubprocessInvocation 27 28@end 29 30@implementation XCWorkQueueCommandCacheFetchInvocation 31- (id)harvestPredictivelyProcessedOutputFiles 32{ 33 _outputStream.release; // expected-warning {{property access result unused - getters should not be used for side effects}} 34 return 0; 35} 36@end 37 38// rdar://19137815 39#pragma clang diagnostic ignored "-Wunused-getter-return-value" 40 41@interface NSObject @end 42 43@interface I : NSObject 44@property (copy) id window; 45@end 46 47@implementation I 48- (void) Meth { 49 [self window]; 50 self.window; 51} 52@end 53 54