diff options
Diffstat (limited to 'clang/test/SemaObjC/conditional-expr-5.m')
-rw-r--r-- | clang/test/SemaObjC/conditional-expr-5.m | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/conditional-expr-5.m b/clang/test/SemaObjC/conditional-expr-5.m new file mode 100644 index 0000000..47aed3e --- /dev/null +++ b/clang/test/SemaObjC/conditional-expr-5.m @@ -0,0 +1,27 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s + +@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 + + |