Daniel Dunbar | ca74ae7 | 2009-11-17 09:04:12 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fobjc-nonfragile-abi -verify -fsyntax-only %s |
Fariborz Jahanian | 7f89047 | 2009-09-02 00:05:10 +0000 | [diff] [blame] | 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 |