diff --git a/Tests/base/NSKVOSupport/newoldvalues.m b/Tests/base/NSKVOSupport/newoldvalues.m index d30b472c1c..b05c38f970 100644 --- a/Tests/base/NSKVOSupport/newoldvalues.m +++ b/Tests/base/NSKVOSupport/newoldvalues.m @@ -1,6 +1,8 @@ #import #import "ObjectTesting.h" +#if defined(__OBJC2__) + @class Bar; @interface Foo : NSObject @@ -220,3 +222,10 @@ - (void)observeValueForKeyPath:(NSString *)keyPath return 0; } +#else +int +main(int argc, char *argv[]) +{ + return 0; +} +#endif