In gcc/testsuite/: 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
authorNicola Pero <nicola.pero@meta-innovation.com>
Sun, 17 Oct 2010 10:11:23 +0000 (10:11 +0000)
committerNicola Pero <nicola@gcc.gnu.org>
Sun, 17 Oct 2010 10:11:23 +0000 (10:11 +0000)
In gcc/testsuite/:
2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>

        PR objc/18255
        * objc.dg/pr18255.m: New.

From-SVN: r165579

gcc/testsuite/ChangeLog
gcc/testsuite/objc.dg/pr18255.m [new file with mode: 0644]

index c6460fd..b236d20 100644 (file)
@@ -1,3 +1,8 @@
+2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       PR objc/18255
+       * objc.dg/pr18255.m: New.
+
 2010-10-16  Jan Hubicka  <jh@suse.cz>
 
        PR middle-end/44206
diff --git a/gcc/testsuite/objc.dg/pr18255.m b/gcc/testsuite/objc.dg/pr18255.m
new file mode 100644 (file)
index 0000000..c9bb87c
--- /dev/null
@@ -0,0 +1,24 @@
+/* This is a test for a GNU Objective-C Runtime library bug.  */
+/* { dg-do run } */
+/* { dg-skip-if "" { *-*-* } { "-fnext-runtime" } { "" } } */
+
+#include <objc/Protocol.h>
+#include <stdlib.h>
+
+@protocol a
+- aMethod;
+@end
+
+
+@protocol b <a>
+- bMethod;
+@end
+
+
+int main (int argc, char **argv)
+{
+  if ([@protocol(b) descriptionForInstanceMethod: @selector(aMethod)] == NULL)
+    abort ();
+
+  return 0;
+}