aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/comp-types-9.mm
blob: 9c9b3dfe70f9deed127c3f31c649fb37a5dc1871 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* APPLE LOCAL file mainline */
/* { dg-do compile } */
/* Another gimplifier ICE... */

#include <objc/Object.h>

@interface MyView: Object {
  int _frame;
}
- (void)_finalize;
@end

@interface MyViewTemplate: MyView {
  void *_className;
}
- (id)createRealObject;
@end

@implementation MyViewTemplate
- (id)createRealObject {
    id realObj;
    *(MyView *)realObj = *(MyView *)self;
    return realObj;
}
@end