blob: 651347cf74eeb1ec7dbe24d7c1be8b90d32ded81 [file] [log] [blame]
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
int main() {
NSView *view = [[NSView alloc] init];
dispatch_group_t g = dispatch_group_create();
dispatch_group_enter(g);
[NSThread detachNewThreadWithBlock:^{
@autoreleasepool {
[view superview];
}
dispatch_group_leave(g);
}];
dispatch_group_wait(g, DISPATCH_TIME_FOREVER);
}