4 .*badTagClass.m:\d+:\d+: warning: null passed to a callee that requires a non-null argument \[-Wnonnull\]
7 objc\[\d+\]: tag index 1 used for two different classes \(was 0x[0-9a-fA-F]+ NSObject, now 0x[0-9a-fA-F]+ TestRoot\)
18 #include <objc/objc-internal.h>
19 #include <objc/Protocol.h>
21 #if OBJC_HAVE_TAGGED_POINTERS
25 // re-registration and nil registration allowed
26 _objc_registerTaggedPointerClass(OBJC_TAG_1, [NSObject class]);
27 _objc_registerTaggedPointerClass(OBJC_TAG_1, [NSObject class]);
28 _objc_registerTaggedPointerClass(OBJC_TAG_1, nil);
29 _objc_registerTaggedPointerClass(OBJC_TAG_1, [NSObject class]);
31 // colliding registration disallowed
32 _objc_registerTaggedPointerClass(OBJC_TAG_1, [TestRoot class]);
41 // provoke the same nullability warning as the real test
44 fprintf(stderr, "no tagged pointers\n");