summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/mtc/simple/main.m
blob: 651347cf74eeb1ec7dbe24d7c1be8b90d32ded81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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);
}
OpenPOWER on IntegriCloud