blob: afaf82e731063ab5dd2796e5d94b46f36e93c87a [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -verify %s
Fariborz Jahanian2ce1be02009-03-19 18:15:34 +00002
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{
Fariborz Jahanianf2ad2c92010-10-11 21:29:12 +000033 _outputStream.release; // expected-warning {{property access result unused - getters should not be used for side effects}}
Mike Stumpd1969d82009-07-22 00:43:08 +000034 return 0;
Fariborz Jahanian2ce1be02009-03-19 18:15:34 +000035}
36@end