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