1// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
2// expected-no-diagnostics
3
4@interface PBXBuildSettingsDictionary
5{
6  int i;
7}
8@end
9
10@interface XCConditionalBuildSettingsDictionary : PBXBuildSettingsDictionary
11{
12}
13@end
14
15@implementation PBXBuildSettingsDictionary
16
17- (XCConditionalBuildSettingsDictionary *)conditionalDictionaryForConditionSet
18{
19  return i ? self : (id)0;
20}
21
22- (XCConditionalBuildSettingsDictionary *)conditionalDictionaryForConditionSet2
23{
24  return i ? (id)0 : self;
25}
26@end
27
28
29