OSDN Git Service

2010-05-15 Janus Weil <janus@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / objc.dg / comp-types-8.m
1 /* { dg-do compile } */
2 /* Another gimplifier ICE... */
3
4 #include "../objc-obj-c++-shared/Object1.h"
5
6 @interface MyView: Object {
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