Commit fcc414dc by Iain Sandoe

don't try to run Objective-C API=2 tests for Darwin < 9

testsuite:
	* objc.dg/special/load-category-1.m: Remove unused header.
	* objc.dg/special/load-category-1a.m: Likewise.
	* objc.dg/special/load-category-2.m: Likewise.
	* objc.dg/special/load-category-2a.m: Likewise.
	* objc.dg/special/load-category-3.m: Likewise.
	* objc.dg/special/load-category-3a.m: Likewise.
	* objc.dg/attributes/proto-attribute-2.m: Likewise.
	* objc.dg/attributes/proto-attribute-3.m: Likewise.
	* objc.dg/attributes/class-attribute-1.m: Likewise.
	* objc.dg/property/property.exp: Don't run for Darwin < 9.
	* obj-c++.dg/property/property.exp: Likewise.
	* objc.dg/attributes/method-sentinel-1.m: Update type header.
	* obj-c++.dg/attributes/method-sentinel-1.mm: Likewise.
	* obj-c++.dg/attributes/proto-attribute-2.mm: Skip for Darwin < 9.
	* obj-c++.dg/attributes/class-attribute-1.mm: Likewise.
	* obj-c++.dg/attributes/proto-attribute-3.mm: Likewise.
	* obj-c++.dg/template-8.mm: Likewise.

From-SVN: r170001
parent 525a2d06
2011-02-10 Iain Sandoe <iains@gcc.gnu.org>
* objc.dg/special/load-category-1.m: Remove unused header.
* objc.dg/special/load-category-1a.m: Likewise.
* objc.dg/special/load-category-2.m: Likewise.
* objc.dg/special/load-category-2a.m: Likewise.
* objc.dg/special/load-category-3.m: Likewise.
* objc.dg/special/load-category-3a.m: Likewise.
* objc.dg/attributes/proto-attribute-2.m: Likewise.
* objc.dg/attributes/proto-attribute-3.m: Likewise.
* objc.dg/attributes/class-attribute-1.m: Likewise.
* objc.dg/property/property.exp: Don't run for Darwin < 9.
* obj-c++.dg/property/property.exp: Likewise.
* objc.dg/attributes/method-sentinel-1.m: Update type header.
* obj-c++.dg/attributes/method-sentinel-1.mm: Likewise.
* obj-c++.dg/attributes/proto-attribute-2.mm: Skip for Darwin < 9.
* obj-c++.dg/attributes/class-attribute-1.mm: Likewise.
* obj-c++.dg/attributes/proto-attribute-3.mm: Likewise.
* obj-c++.dg/template-8.mm: Likewise.
2011-02-10 Jakub Jelinek <jakub@redhat.com>
PR target/47665
......
/* { dg-do compile } */
/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
/* Test deprecate attribute with an @interface declaration. */
......
......@@ -4,6 +4,8 @@
#include <objc/objc.h>
#include <stdlib.h>
/* Ensure a compatible definition of nil. */
#include "../../objc-obj-c++-shared/objc-test-suite-types.h"
@interface NSArray
{
......
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010. */
/* { dg-do compile } */
/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
/* Test deprecate attribute with a forward declarations of
@protocol. */
......
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010. */
/* { dg-do compile } */
/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
/* Test deprecate attribute with normal @protocol declarations. */
......
......@@ -33,9 +33,10 @@ set tests [lsort [glob -nocomplain $srcdir/$subdir/*.mm]]
# Main loop.
dg-runtest $tests "-fgnu-runtime" $DEFAULT_OBJCXXFLAGS
# darwin targets can also run code with the NeXT runtime.
if [istarget "*-*-darwin*" ] {
dg-runtest $tests "-fnext-runtime" $DEFAULT_OBJCXXFLAGS
# Darwin targets can also run code with the NeXT runtime.
# but Properties are not supported by the runtime lib before Darwin 9.
if [istarget "*-*-darwin\[9123\]*" ] {
dg-runtest $tests "-fnext-runtime" $DEFAULT_OBJCXXFLAGS
}
# All done.
......
......@@ -3,6 +3,7 @@
/* Author: Fariborz Jahanian <fjahanian@apple.com> */
/* Adapted by Nicola Pero <nicola.pero@meta-innovation.com> */
/* { dg-do run } */
/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
#include <objc/objc.h>
......
......@@ -3,7 +3,6 @@
/* Test deprecate attribute with an @interface declaration. */
#include <objc/objc.h>
#include <objc/runtime.h>
__attribute__ ((deprecated))
@interface DeprecatedClass
......
......@@ -4,6 +4,7 @@
#include <objc/objc.h>
#include <stdlib.h>
#include "../../objc-obj-c++-shared/objc-test-suite-types.h"
@interface NSArray
{
......
......@@ -6,7 +6,6 @@
#include <stdlib.h>
#include <objc/objc.h>
#include <objc/runtime.h>
__attribute__ ((deprecated))
@protocol DeprecatedProtocol1;
......
......@@ -6,7 +6,6 @@
#include <stdlib.h>
#include <objc/objc.h>
#include <objc/runtime.h>
__attribute__ ((deprecated))
@protocol DeprecatedProtocol1
......
......@@ -33,8 +33,9 @@ set tests [lsort [glob -nocomplain $srcdir/$subdir/*.m]]
# Main loop.
dg-runtest $tests "-fgnu-runtime" $DEFAULT_CFLAGS
# darwin targets can also run code with the NeXT runtime.
if [istarget "*-*-darwin*" ] {
# Darwin targets can also run code with the NeXT runtime.
# but Properties are not supported by the runtime lib before Darwin 9.
if [istarget "*-*-darwin\[9123\]*" ] {
dg-runtest $tests "-fnext-runtime" $DEFAULT_CFLAGS
}
......
......@@ -4,7 +4,6 @@
#include <stdlib.h>
#include <objc/objc.h>
#include <objc/runtime.h>
#include "load-category-1.h"
......
......@@ -2,7 +2,6 @@
#include <stdlib.h>
#include <objc/objc.h>
#include <objc/runtime.h>
#include "load-category-1.h"
......
......@@ -5,7 +5,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <objc/objc.h>
#include <objc/runtime.h>
#include "load-category-2.h"
......
......@@ -3,7 +3,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <objc/objc.h>
#include <objc/runtime.h>
#include "load-category-2.h"
......
......@@ -10,7 +10,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <objc/objc.h>
#include <objc/runtime.h>
#include "load-category-3.h"
......
......@@ -8,7 +8,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <objc/objc.h>
#include <objc/runtime.h>
#include "load-category-3.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