Commit 5471aef0 by Iain Sandoe

foreach-1.m: Skip for Darwin < 9.


gcc/testsuite:

	* objc.dg/foreach-1.m: Skip for Darwin < 9.
	* objc.dg/objc-foreach-4.m: Likewise.
	* objc.dg/objc-foreach-5.m: Skip for Darwin < 9, adjust headers.
	* objc.dg/foreach-2.m: Skip for Darwin < 9, return self from init.
	* objc.dg/foreach-4.m: Likewise.
	* objc.dg/foreach-5.m: Likewise.
	* objc.dg/foreach-3.m: Return self from init.

From-SVN: r168616
parent 1ba6516f
2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
* objc.dg/foreach-1.m: Skip for Darwin < 9.
* objc.dg/objc-foreach-4.m: Likewise.
* objc.dg/objc-foreach-5.m: Skip for Darwin < 9, adjust headers.
* objc.dg/foreach-2.m: Skip for Darwin < 9, return self from init.
* objc.dg/foreach-4.m: Likewise.
* objc.dg/foreach-5.m: Likewise.
* objc.dg/foreach-3.m: Return self from init.
2011-01-09 Thomas Koenig <tkoenig@gcc.gnu.org> 2011-01-09 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/38536 PR fortran/38536
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
do nothing. do nothing.
*/ */
/* { dg-do run } */ /* { dg-do run } */
/* { dg-skip-if "No NeXT fast enum. pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */ /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
/* { dg-additional-sources "../objc-obj-c++-shared/Object1.m" } */ /* { dg-additional-sources "../objc-obj-c++-shared/Object1.m" } */
/* { dg-options "-Wall" } */ /* { dg-options "-Wall" } */
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
the basic syntax 'for (object in array) statements' the basic syntax 'for (object in array) statements'
*/ */
/* { dg-do run } */ /* { dg-do run } */
/* { dg-skip-if "No NeXT fast enum. pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */ /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
/* { dg-options "-mno-constant-cfstrings" { target *-*-darwin* } } */ /* { dg-options "-mno-constant-cfstrings" { target *-*-darwin* } } */
/* { dg-additional-sources "../objc-obj-c++-shared/Object1.m" } */ /* { dg-additional-sources "../objc-obj-c++-shared/Object1.m" } */
...@@ -49,6 +50,7 @@ struct __objcFastEnumerationState ...@@ -49,6 +50,7 @@ struct __objcFastEnumerationState
length = l; length = l;
objects = o; objects = o;
mutated = 0; mutated = 0;
return self;
} }
- (void) mutate - (void) mutate
{ {
......
...@@ -50,6 +50,7 @@ struct __objcFastEnumerationState ...@@ -50,6 +50,7 @@ struct __objcFastEnumerationState
length = l; length = l;
objects = o; objects = o;
mutated = 0; mutated = 0;
return self;
} }
- (void) mutate - (void) mutate
{ {
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
the declaration syntax 'for (id object in array) statements' the declaration syntax 'for (id object in array) statements'
*/ */
/* { dg-do run } */ /* { dg-do run } */
/* { dg-skip-if "No NeXT fast enum. pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */ /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
/* { dg-options "-mno-constant-cfstrings" { target *-*-darwin* } } */ /* { dg-options "-mno-constant-cfstrings" { target *-*-darwin* } } */
/* { dg-additional-sources "../objc-obj-c++-shared/Object1.m" } */ /* { dg-additional-sources "../objc-obj-c++-shared/Object1.m" } */
...@@ -49,6 +50,7 @@ struct __objcFastEnumerationState ...@@ -49,6 +50,7 @@ struct __objcFastEnumerationState
length = l; length = l;
objects = o; objects = o;
mutated = 0; mutated = 0;
return self;
} }
- (void) mutate - (void) mutate
{ {
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
define your own NSFastEnumeration struct, the compiler picks it up. define your own NSFastEnumeration struct, the compiler picks it up.
*/ */
/* { dg-do run } */ /* { dg-do run } */
/* { dg-skip-if "No NeXT fast enum. pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */ /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
/* { dg-options "-mno-constant-cfstrings" { target *-*-darwin* } } */ /* { dg-options "-mno-constant-cfstrings" { target *-*-darwin* } } */
/* { dg-additional-sources "../objc-obj-c++-shared/Object1.m" } */ /* { dg-additional-sources "../objc-obj-c++-shared/Object1.m" } */
...@@ -47,6 +48,7 @@ typedef struct ...@@ -47,6 +48,7 @@ typedef struct
length = l; length = l;
objects = o; objects = o;
mutated = 0; mutated = 0;
return self;
} }
- (void) mutate - (void) mutate
{ {
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
/* FIXME: Run this test with the GNU runtime as well. */ /* FIXME: Run this test with the GNU runtime as well. */
/* { dg-do compile { target *-*-darwin* } } */ /* { dg-do compile { target *-*-darwin* } } */
/* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */ /* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */
/* { dg-skip-if "No NeXT fast enum. pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
#include <objc/objc-api.h> #include <objc/objc-api.h>
#include <Foundation/Foundation.h> #include <Foundation/Foundation.h>
......
/* FIXME: Run this test with the GNU runtime as well. */ /* FIXME: Run this test with the GNU runtime as well. */
/* { dg-do compile { target *-*-darwin* } } */ /* { dg-do compile { target *-*-darwin* } } */
/* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */ /* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */
/* { dg-skip-if "No NeXT fast enum. pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
#include <objc/objc-api.h>
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
NSArray * createTestVictim(unsigned capacity) { NSArray * createTestVictim(unsigned capacity) {
......
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