]> git.saurik.com Git - apple/objc4.git/blob - test/taggedPointersTagObfuscationDisabled.m
objc4-756.2.tar.gz
[apple/objc4.git] / test / taggedPointersTagObfuscationDisabled.m
1 // TEST_ENV OBJC_DISABLE_TAG_OBFUSCATION=YES
2
3 #include "test.h"
4 #include <objc/objc-internal.h>
5
6 #if !OBJC_HAVE_TAGGED_POINTERS
7
8 int main()
9 {
10 succeed(__FILE__);
11 }
12
13 #else
14
15 int main()
16 {
17 testassert(_objc_getTaggedPointerTag((void *)1) == 0);
18 succeed(__FILE__);
19 }
20
21 #endif