[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git] / test / SemaObjC / deref-interface.m
blob255e1d07981435f5846fd4406088521e16a40836
1 // RUN: %clang_cc1 -fobjc-nonfragile-abi -verify -fsyntax-only %s
3 @interface NSView 
4   - (id)initWithView:(id)realView;
5 @end
7 @implementation NSView
8  - (id)initWithView:(id)realView {
9      *(NSView *)self = *(NSView *)realView;     // expected-error {{cannot assign to class object in non-fragile ABI}}
10  }
11 @end