summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/gnu-api-2-class.m
diff options
context:
space:
mode:
authornicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2011-08-06 14:20:09 +0000
committernicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2011-08-06 14:20:09 +0000
commit1db7b8a843e41f8e4858fbbdaac698e9f4ea371e (patch)
tree2eebcd872b6090c0533651d1c56a014d20130d9b /gcc/testsuite/objc.dg/gnu-api-2-class.m
parent0f4721f30396b56d99ec291495dd38dc1fe40aec (diff)
downloadgcc-1db7b8a843e41f8e4858fbbdaac698e9f4ea371e.tar.gz
In libobjc/:
2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com> PR libobjc/50002 * class.c (__objc_update_classes_with_methods): Iterate over meta classes as well as normal classes when refreshing the method implementations. This fixes replacing class methods. 2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com> * class.c (class_getSuperclass): Fixed to work with meta classes still in construction too. In gcc/testsuite/: 2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com> PR libobjc/50002 * objc.dg/gnu-api-2-class.m: Updated comments. * obj-c++.dg/gnu-api-2-class.mm: Likewise. * objc.dg/gnu-api-2-class-meta.m: New test. * obj-c++.dg/gnu-api-2-class-meta.mm: Likewise. 2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com> PR libobjc/49882 * obj-c++.dg/gnu-api-2-class.mm (main): Test class_getSuperclass() with classes that are in construction. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177510 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.m6
1 files changed, 4 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 d69f8eba20f..7f9cf861c8a 100644
--- a/gcc/testsuite/objc.dg/gnu-api-2-class.m
+++ b/gcc/testsuite/objc.dg/gnu-api-2-class.m
@@ -1,6 +1,8 @@
/* Test the Modern GNU Objective-C Runtime API.
- This is test 'class', covering all functions starting with 'class'. */
+ This is test 'class', covering all functions starting with 'class'.
+ Tests calling the functions with a meta class as argument are covered
+ in the separate file, gnu-api-2-class-meta.m. */
/* { dg-do run } */
/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
@@ -401,7 +403,7 @@ int main(int argc, void **args)
if (class_getSuperclass (new_class) != objc_getClass ("MyRootClass"))
abort ();
- }
+ }
}
printf ("Testing class_getVersion ()...\n");