/* Check if casting the receiver type causes method lookup to succeed. This was broken in Objective-C++. */ /* Contributed by Ziemowit Laski */ /* { dg-do compile } */ @interface A @end @interface B: A - (void)f; @end void g(A *p) { [(B *)p f]; }
虫虫下载站 半导体技术网 电子研发网 源码地带 电源技术网 单片机技术网 医疗电子技术 嵌入式系统与单片机