2012-04-07 02:12:22 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2009-08-23 06:27:17 +08:00
|
|
|
|
|
|
|
@interface PBXBuildSettingsDictionary
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface XCConditionalBuildSettingsDictionary : PBXBuildSettingsDictionary
|
|
|
|
{
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation PBXBuildSettingsDictionary
|
|
|
|
|
|
|
|
- (XCConditionalBuildSettingsDictionary *)conditionalDictionaryForConditionSet
|
|
|
|
{
|
|
|
|
return i ? self : (id)0;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (XCConditionalBuildSettingsDictionary *)conditionalDictionaryForConditionSet2
|
|
|
|
{
|
|
|
|
return i ? (id)0 : self;
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
|