]> git.proxmox.com Git - rustc.git/blame - src/llvm/tools/clang/test/SemaObjC/deref-interface.m
Imported Upstream version 0.6
[rustc.git] / src / llvm / tools / clang / test / SemaObjC / deref-interface.m
CommitLineData
223e47cc
LB
1// RUN: %clang_cc1 -verify -fsyntax-only -Wno-objc-root-class %s
2
3@interface NSView
4 - (id)initWithView:(id)realView;
5@end
6
7@implementation NSView
8 - (id)initWithView:(id)realView {
9 *(NSView *)self = *(NSView *)realView; // expected-error {{cannot assign to class object}}
10 }
11@end
12