summaryrefslogtreecommitdiffstats
path: root/test/ARCMT/init.m.result
diff options
context:
space:
mode:
Diffstat (limited to 'test/ARCMT/init.m.result')
-rw-r--r--test/ARCMT/init.m.result7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/ARCMT/init.m.result b/test/ARCMT/init.m.result
index 0140bb9..d7f7300 100644
--- a/test/ARCMT/init.m.result
+++ b/test/ARCMT/init.m.result
@@ -1,6 +1,9 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -fobjc-arc -x objective-c %s.result
// RUN: arcmt-test --args -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c %s > %t
// RUN: diff %t %s.result
+// DISABLE: mingw32
+
+#define nil (void *)0
@interface NSObject
-init;
@@ -15,7 +18,7 @@
@implementation A
-(id) init {
- self = [self init];
+ if (!(self = [self init])) return nil;
id a;
[a init];
a = [[A alloc] init];
@@ -24,7 +27,7 @@
}
-(id) init2 {
- self = [super init];
+ if (!(self = [super init])) return nil;
return self;
}
OpenPOWER on IntegriCloud