]>
Commit | Line | Data |
---|---|---|
13ba007e A |
1 | // TEST_CONFIG |
2 | ||
3 | #include "test.h" | |
4 | ||
5 | // objc.h redefines these calls into bridge casts. | |
6 | // This test verifies that the function implementations are exported. | |
7 | __BEGIN_DECLS | |
8 | extern void *retainedObject(void *arg) __asm__("_objc_retainedObject"); | |
9 | extern void *unretainedObject(void *arg) __asm__("_objc_unretainedObject"); | |
10 | extern void *unretainedPointer(void *arg) __asm__("_objc_unretainedPointer"); | |
11 | __END_DECLS | |
12 | ||
13 | int main() | |
14 | { | |
15 | void *p = (void*)&main; | |
16 | testassert(p == retainedObject(p)); | |
17 | testassert(p == unretainedObject(p)); | |
18 | testassert(p == unretainedPointer(p)); | |
19 | succeed(__FILE__); | |
20 | } |