1/* { dg-do compile } */ 2 3/* Another gimplifier ICE... */ 4 5#include "../objc-obj-c++-shared/TestsuiteObject.h" 6 7@interface MyView: TestsuiteObject { 8 int _frame; 9} 10- (void)_finalize; 11@end 12 13@interface MyViewTemplate: MyView { 14 void *_className; 15} 16- (id)createRealObject; 17@end 18 19@implementation MyViewTemplate 20- (id)createRealObject { 21 id realObj; 22 *(MyView *)realObj = *(MyView *)self; 23 return realObj; 24} 25@end 26