diff options
author | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-26 18:05:00 +0000 |
---|---|---|
committer | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-26 18:05:00 +0000 |
commit | 2e65d946bc072ceaa8313570a032afcf3e591351 (patch) | |
tree | 26529a8d1d86affc219c3a8d96b6942327c3237a /gcc/testsuite/objc.dg/gnu-api-2-class.m | |
parent | 6e4aa40cc145e5648ff7d1c6339530a884bd34d2 (diff) | |
download | gcc-2e65d946bc072ceaa8313570a032afcf3e591351.tar.gz |
In gcc/testsuite/:
2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
* 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
Diffstat (limited to 'gcc/testsuite/objc.dg/gnu-api-2-class.m')
-rw-r--r-- | gcc/testsuite/objc.dg/gnu-api-2-class.m | 5 |
1 files changed, 3 insertions, 2 deletions
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 (); |