blob: 255e1d07981435f5846fd4406088521e16a40836 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fobjc-nonfragile-abi -verify -fsyntax-only %s
Fariborz Jahanian7f890472009-09-02 00:05:10 +00002
3@interface NSView
4 - (id)initWithView:(id)realView;
5@end
6
7@implementation NSView
8 - (id)initWithView:(id)realView {
Fariborz Jahanian57dae1a2010-08-16 21:51:12 +00009 *(NSView *)self = *(NSView *)realView; // expected-error {{cannot assign to class object in non-fragile ABI}}
Fariborz Jahanian7f890472009-09-02 00:05:10 +000010 }
11@end
12