From 2e65d946bc072ceaa8313570a032afcf3e591351 Mon Sep 17 00:00:00 2001 From: nicola Date: Sun, 26 Dec 2010 18:05:00 +0000 Subject: In gcc/testsuite/: 2010-12-26 Nicola Pero * objc.dg/gnu-api-2-class.m: Updated the test to work with the Apple runtime as well. * obj-c++.dg/gnu-api-2-class.mm: Same change. * objc.dg/gnu-api-2-ivar.m: Same change. * obj-c++.dg/gnu-api-2-ivar.mm: Same change. * objc.dg/gnu-api-2-method.m: Same change. * obj-c++.dg/gnu-api-2-method.mm: Same change. * objc.dg/gnu-api-2-objc.m: Same change. * obj-c++.dg/gnu-api-2-objc.mm: Same change. * objc.dg/gnu-api-2-object.m: Same change. * obj-c++.dg/gnu-api-2-object.mm: Same change. * objc.dg/gnu-api-2-property.m: Same change. * obj-c++.dg/gnu-api-2-property.mm: Same change. * objc.dg/gnu-api-2-protocol.m: Same change. * obj-c++.dg/gnu-api-2-protocol.mm: Same change. * objc.dg/gnu-api-2-objc.m: Also, fixed test for objc_disposeClassPair not to create a new class pair with the same name as an existing class, and to test that the class pair is created correctly. * obj-c++.dg/gnu-api-2-objc.mm: Same change. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168252 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/objc.dg/gnu-api-2-class.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gcc/testsuite/objc.dg/gnu-api-2-class.m') diff --git a/gcc/testsuite/objc.dg/gnu-api-2-class.m b/gcc/testsuite/objc.dg/gnu-api-2-class.m index 3302fccbb17..2b2715ceb3d 100644 --- a/gcc/testsuite/objc.dg/gnu-api-2-class.m +++ b/gcc/testsuite/objc.dg/gnu-api-2-class.m @@ -3,7 +3,6 @@ This is test 'class', covering all functions starting with 'class'. */ /* { dg-do run } */ -/* { dg-skip-if "" { *-*-* } { "-fnext-runtime" } { "" } } */ /* To get the modern GNU Objective-C Runtime API, you include objc/runtime.h. */ @@ -16,11 +15,13 @@ { Class isa; } + alloc; - init; ++ initialize; @end @implementation MyRootClass + alloc { return class_createInstance (self, 0); } - init { return self; } ++ initialize { return self; } @end @protocol MyProtocol @@ -256,7 +257,7 @@ int main(int argc, void **args) printf ("Testing class_copyPropertyList ()...\n"); { unsigned int count; - Property * list = class_copyPropertyList (objc_getClass ("MySubClass"), &count); + objc_property_t * list = class_copyPropertyList (objc_getClass ("MySubClass"), &count); if (count != 0 || list != NULL) abort (); -- cgit v1.2.1