===================================================================
@@ -1,14 +1,15 @@
/* This file tests that things are encoded using the gcc-3.3 ABI
which is only
used by the NeXT runtime. */
/* { dg-do run { target *-*-darwin* } } */
+/* { dg-require-effective-target ilp32 } */
/* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */
+
+#include "../objc-obj-c++-shared/Protocol1.h"
#include <stdio.h>
#include <string.h>
-#include "../objc-obj-c++-shared/Protocol1.h"
extern void abort();
-
@protocol CommonProtocol
-(oneway void)methodCall_On:(in bycopy id)someValue_On;
===================================================================
@@ -8,7 +8,7 @@
#import "../objc-obj-c++-shared/next-mapping.h"
#include <stdio.h>
#include <stdlib.h>
-#include <memory.h>
+#include <string.h>
@interface Foo: Object {
char *cString;
===================================================================
@@ -6,7 +6,7 @@
#include "../objc-obj-c++-shared/Object1.h"
#include <stdio.h>
#include <stdlib.h>
-#include <memory.h>
+#include <string.h>
@interface Foo: Object {
char *cString;
===================================================================
@@ -2,6 +2,8 @@
they should. */
/* { dg-do run } */
/* { dg-options "-O2" } */
+/* { dg-additional-sources "../objc-obj-c++-shared/Object1.m" } */
+/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { !
objc2 } } } { "-fnext-runtime" } { "" } } */
#include "../objc-obj-c++-shared/Object1.h"
#include <string.h>
===================================================================
@@ -5,6 +5,7 @@
/* { dg-do compile } */
#include "../objc-obj-c++-shared/Object1.h"
+#import "../objc-obj-c++-shared/next-mapping.h"
@interface Foo: Object {
char *cString;
@@ -17,7 +18,11 @@
+ (Foo *) getString: (int) which;
@end
+#ifdef NEXT_OBJC_USE_NEW_INTERFACE
+struct fudge_objc_class _FooClassReference;
+#else
struct objc_class _FooClassReference;
+#endif
@implementation Bar
+ (Foo *) getString: (int) which {
===================================================================
@@ -1,10 +1,11 @@
/* Method encoding tests for stand-alone @protocol declarations. */
/* Contributed by Ziemowit Laski <zlaski@apple.com>. */
/* { dg-do run } */
+/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { !
objc2 } } } { "-fnext-runtime" } { "" } } */
+#include "../objc-obj-c++-shared/Protocol1.h"
+#include <stdio.h>
#include <stdlib.h>
-#include "../objc-obj-c++-shared/Protocol1.h"
-/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { !
objc2 } } } { "-fnext-runtime" } { "" } } */
#ifdef __cplusplus
#define ProtoBool bool
===================================================================
@@ -2,7 +2,7 @@
/* Author: Ziemowit Laski <zlaski@apple.com> */
/* { dg-do run { target *-*-darwin* } } */
-/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
+/* { dg-require-effective-target ilp32 } */
/* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */
#include "../objc-obj-c++-shared/Object1.h"
===================================================================
@@ -1,8 +1,9 @@
/* Additional testing for the NeXT runtime. Encoding in -m64 mode */
/* { dg-do run { target *-*-darwin* } } */
-/* { dg-options "-m64" } */
+/* { dg-require-effective-target lp64 } */
/* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */
+/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { !
objc2 } } } { "-fnext-runtime" } { "" } } */
#include <objc/Object.h>
#include <stdbool.h>
===================================================================
@@ -4,9 +4,12 @@
/* Contributed by Ziemowit Laski <zlaski@apple.com>. */
/* { dg-do run } */
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 &&
{ ! objc2 } } } { "-fnext-runtime" } { "" } } */
+/* { dg-additional-sources "../objc-obj-c++-shared/Object1.m" } */
+
#include "../objc-obj-c++-shared/Object1.h"
#include "../objc-obj-c++-shared/next-mapping.h"
-//#include <objc/objc.h>
+#include <stdio.h>
+#include <stdlib.h>
#ifdef __NEXT_RUNTIME__
#include <objc/objc-runtime.h>