123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #include "unload.h"
- #include "testroot.i"
- #import <objc/objc-api.h>
- @implementation SmallClass : TestRoot
- -(void)unload2_instance_method { }
- @end
- @implementation BigClass : TestRoot
- @end
- OBJC_ROOT_CLASS
- @interface UnusedClass { id isa; } @end
- @implementation UnusedClass @end
- @protocol SmallProtocol
- -(void)unload2_category_method;
- @end
- @interface SmallClass (Category) <SmallProtocol> @end
- @implementation SmallClass (Category)
- -(void)unload2_category_method { }
- @end
- __attribute__((weak_import))
- @interface ClassThatIsWeakImportAndMissing : TestRoot @end
- @interface SubclassOfMissingWeakImport : ClassThatIsWeakImportAndMissing <SmallProtocol> @end
- @implementation SubclassOfMissingWeakImport
- -(void)unload2_category_method { }
- @end
- @interface ClassThatIsWeakImportAndMissing (Category) <SmallProtocol> @end
- @implementation ClassThatIsWeakImportAndMissing (Category)
- -(void)unload2_category_method { }
- @end
|