summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/zero-link-3.m
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/objc.dg/zero-link-3.m')
-rw-r--r--gcc/testsuite/objc.dg/zero-link-3.m10
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/testsuite/objc.dg/zero-link-3.m b/gcc/testsuite/objc.dg/zero-link-3.m
index af624abf096..2b95b952b1e 100644
--- a/gcc/testsuite/objc.dg/zero-link-3.m
+++ b/gcc/testsuite/objc.dg/zero-link-3.m
@@ -1,10 +1,12 @@
/* Check that the '-fzero-link' flag doesn't prevent messaging from working. */
/* Contributed by Ziemowit Laski <zlaski@apple.com>. */
-/* { dg-options "-fnext-runtime -fzero-link -lobjc" } */
+
/* { dg-do run { target *-*-darwin* } } */
+/* { dg-options "-fzero-link" } */
+/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
-#import <objc/objc.h>
-#import <objc/Object.h>
+#include "../objc-obj-c++-shared/Object1.h"
+//#import <objc/objc.h>
extern void abort(void);
#define CHECK_IF(expr) if(!(expr)) abort();
@@ -22,3 +24,5 @@ int main(void) {
CHECK_IF(val == 1593);
return 0;
}
+
+#include "../objc-obj-c++-shared/Object1-implementation.h"