aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/obj-c++.dg/comp-types-9.mm
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/obj-c++.dg/comp-types-9.mm')
-rw-r--r--gcc-4.9/gcc/testsuite/obj-c++.dg/comp-types-9.mm25
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/obj-c++.dg/comp-types-9.mm b/gcc-4.9/gcc/testsuite/obj-c++.dg/comp-types-9.mm
new file mode 100644
index 000000000..6c571325a
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/obj-c++.dg/comp-types-9.mm
@@ -0,0 +1,25 @@
+/* { dg-do compile } */
+
+/* Another gimplifier ICE... */
+
+#include "../objc-obj-c++-shared/TestsuiteObject.h"
+
+@interface MyView: TestsuiteObject {
+ 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