]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaObjC/deref-interface.m
Update clang to r89205.
[FreeBSD/FreeBSD.git] / test / SemaObjC / deref-interface.m
1 // RUN: clang-cc -fobjc-nonfragile-abi -verify -fsyntax-only %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 {{indirection cannot be to an interface in non-fragile ABI}}
10  }
11 @end
12