From 368be4c7351ae32340d6ef1fbf330467792c1432 Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Sun, 17 Oct 2010 10:11:23 +0000 Subject: [PATCH] In gcc/testsuite/: 2010-10-17 Nicola Pero In gcc/testsuite/: 2010-10-17 Nicola Pero PR objc/18255 * objc.dg/pr18255.m: New. From-SVN: r165579 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/objc.dg/pr18255.m | 24 ++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 gcc/testsuite/objc.dg/pr18255.m diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c6460fd3513..b236d209d58 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-10-17 Nicola Pero + + PR objc/18255 + * objc.dg/pr18255.m: New. + 2010-10-16 Jan Hubicka PR middle-end/44206 diff --git a/gcc/testsuite/objc.dg/pr18255.m b/gcc/testsuite/objc.dg/pr18255.m new file mode 100644 index 00000000000..c9bb87c67f9 --- /dev/null +++ b/gcc/testsuite/objc.dg/pr18255.m @@ -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 +#include + +@protocol a +- aMethod; +@end + + +@protocol b +- bMethod; +@end + + +int main (int argc, char **argv) +{ + if ([@protocol(b) descriptionForInstanceMethod: @selector(aMethod)] == NULL) + abort (); + + return 0; +} -- 2.30.2