Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/objc.dg/pr18255.m @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* This is a test for a GNU Objective-C Runtime library bug. */ /* { dg-do run } */ /* { dg-skip-if "" { *-*-* } { "-fnext-runtime" } { "" } } */ #include <objc/runtime.h> #include <objc/Protocol.h> #include <stdlib.h> @protocol a - aMethod; @end @protocol b <a> - bMethod; @end int main (int argc, char **argv) { struct objc_method_description m; m = protocol_getMethodDescription (@protocol(b), @selector(aMethod), YES, YES); if (m.name != NULL) abort (); m = protocol_getMethodDescription (@protocol(a), @selector(aMethod), YES, YES); if (m.name == NULL) abort (); return 0; }