Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaObjC / deref-interface.m
blob3201412cbc2728e06700a271809698b3a0066ccf
1 // RUN: %clang_cc1 -verify -fsyntax-only -Wno-objc-root-class %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}}
10  }
11 @end