1998-09-03 14:35:49 +00:00
|
|
|
/* Test whether Objective-C runtime was compiled with thread support */
|
|
|
|
|
2001-04-26 03:46:11 +00:00
|
|
|
#ifndef NeXT_RUNTIME
|
2001-01-08 21:45:31 +00:00
|
|
|
/* Dummy NXConstantString impl for so libobjc that doesn't include it */
|
|
|
|
#include <objc/NXConstStr.h>
|
|
|
|
@implementation NXConstantString
|
|
|
|
@end
|
2001-04-26 03:46:11 +00:00
|
|
|
#endif
|
2001-01-08 21:45:31 +00:00
|
|
|
|
2003-06-06 01:55:21 +00:00
|
|
|
#include <objc/thr.h>
|
|
|
|
#include <objc/Object.h>
|
1998-09-03 14:35:49 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
main()
|
|
|
|
{
|
2003-06-06 01:55:21 +00:00
|
|
|
id o = [Object new];
|
|
|
|
|
|
|
|
return (objc_thread_detach (@selector(hash), o, nil) == NULL) ? -1 : 0;
|
1998-09-03 14:35:49 +00:00
|
|
|
}
|