Commit fb9061be by Iain Sandoe

add files missed on previous commit.

From-SVN: r164748
parent 3bc33871
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
/* { dg-do compile } */ /* { dg-do compile } */
#include "../objc-obj-c++-shared/Object1.h" #include "../objc-obj-c++-shared/Object1.h"
#import "../objc-obj-c++-shared/next-mapping.h"
@interface Foo: Object { @interface Foo: Object {
char *cString; char *cString;
...@@ -17,7 +18,11 @@ ...@@ -17,7 +18,11 @@
+ (Foo *) getString: (int) which; + (Foo *) getString: (int) which;
@end @end
#ifdef NEXT_OBJC_USE_NEW_INTERFACE
struct fudge_objc_class _FooClassReference;
#else
struct objc_class _FooClassReference; struct objc_class _FooClassReference;
#endif
@implementation Bar @implementation Bar
+ (Foo *) getString: (int) which { + (Foo *) getString: (int) which {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include "../objc-obj-c++-shared/next-mapping.h" #include "../objc-obj-c++-shared/next-mapping.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <memory.h> #include <string.h>
#include <objc/objc.h> #include <objc/objc.h>
@interface Foo: Object { @interface Foo: Object {
......
/* Ensure that overload resolution does not produce warnings as /* Ensure that overload resolution does not produce warnings as
side-effects. */ side-effects. */
/* { dg-do run } */ /* { dg-do run } */
/* { dg-additional-sources "../objc-obj-c++-shared/Object1.mm" } */
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
#include "../objc-obj-c++-shared/Object1.h" #include "../objc-obj-c++-shared/Object1.h"
#include <stdlib.h> #include <stdlib.h>
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
they should. */ they should. */
/* { dg-do run } */ /* { dg-do run } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
/* { dg-additional-sources "../objc-obj-c++-shared/Object1.mm" } */
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
#include "../objc-obj-c++-shared/Object1.h" #include "../objc-obj-c++-shared/Object1.h"
#include <string.h> #include <string.h>
......
/* This file tests that things are encoded using the gcc-3.3 ABI which is only /* This file tests that things are encoded using the gcc-3.3 ABI which is only
used by the NeXT runtime. */ used by the NeXT runtime. */
/* { dg-do run { target *-*-darwin* } } */ /* { dg-do run { target *-*-darwin* } } */
/* { dg-require-effective-target ilp32 } */
/* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */ /* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "../objc-obj-c++-shared/Protocol1.h" #include "../objc-obj-c++-shared/Protocol1.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment