From: Enrico Granata Date: Tue, 19 Feb 2013 00:39:59 +0000 (+0000) Subject: NSWindows should only be created after you have an NSApplication X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5da2adc7707c22ca216eea5480feccbc6769007;p=platform%2Fupstream%2Fllvm.git NSWindows should only be created after you have an NSApplication llvm-svn: 175475 --- diff --git a/lldb/test/lang/objc/rdar-12408181/main.m b/lldb/test/lang/objc/rdar-12408181/main.m index c6ee013..89c43de 100644 --- a/lldb/test/lang/objc/rdar-12408181/main.m +++ b/lldb/test/lang/objc/rdar-12408181/main.m @@ -5,6 +5,7 @@ int main (int argc, char const *argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; + [NSApplication sharedApplication]; NSWindow* window = [[NSWindow alloc] initWithContentRect:NSMakeRect(0,0,100,100) styleMask:NSBorderlessWindowMask backing:NSBackingStoreRetained defer:NO]; [window setCanHide:YES]; [pool release]; // Set breakpoint here.