repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
SemaObjC
/
deref-interface.m
blob
3201412cbc2728e06700a271809698b3a0066ccf
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