]> git.saurik.com Git - apple/objc4.git/blobdiff - test/methodListSmall.mm
objc4-818.2.tar.gz
[apple/objc4.git] / test / methodListSmall.mm
index c10f29d78526427db9ee7ffa3d304d2426588e77..82f157a881f194bb113ddf63cec723ec23d2882f 100644 (file)
@@ -68,6 +68,12 @@ void testClass(Class c) {
     auto *descstret = method_getDescription(mstret);
     testassert(descstret->name == @selector(myMethodStret));
     testassert(descstret->types == method_getTypeEncoding(mstret));
+
+    Method nullTypeMethod = class_getInstanceMethod(c, @selector(myMethodNullTypes));
+    testassert(nullTypeMethod);
+    testassert(method_getName(nullTypeMethod) == @selector(myMethodNullTypes));
+    testassertequal(method_getTypeEncoding(nullTypeMethod), NULL);
+    testassertequal(method_getImplementation(nullTypeMethod), (IMP)myMethod1);
 }
 
 int main() {