2 TEST_ENV OBJC_DISABLE_TAGGED_POINTERS=YES
6 .*taggedPointersDisabled.m:\d+:\d+: warning: null passed to a callee that requires a non-null argument \[-Wnonnull\]
10 objc\[\d+\]: tagged pointers are disabled
13 OK: taggedPointersDisabled.m
18 #include <objc/objc-internal.h>
20 #if !OBJC_HAVE_TAGGED_POINTERS
24 // provoke the same nullability warning as the real test
34 testassert(!_objc_taggedPointersEnabled());
35 _objc_registerTaggedPointerClass((objc_tag_index_t)0, nil);
36 fail("should have crashed in _objc_registerTaggedPointerClass()");