mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 01:31:08 +00:00
Reported on Stack Overflow: http://stackoverflow.com/questions/19389749/why-gnustep-nsrunloop-quits-immediately-with-arc git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37245 72102866-910b-0410-8b05-ffd578937521
16 lines
391 B
Objective-C
16 lines
391 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
id a,b,c;
|
|
|
|
int main(void)
|
|
{
|
|
NSAutoreleasePool *p = [NSAutoreleasePool new];
|
|
NSZombieEnabled = YES;
|
|
a = [NSFileHandle fileHandleWithStandardInput];
|
|
b = [NSFileHandle fileHandleWithStandardOutput];
|
|
c = [NSFileHandle fileHandleWithStandardError];
|
|
[p drain];
|
|
assert(0 != [a description]);
|
|
assert(0 != [b description]);
|
|
assert(0 != [c description]);
|
|
}
|