Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fobjc-nonfragile-abi -verify -fsyntax-only %s |
Fariborz Jahanian | faa3449 | 2010-08-11 17:37:35 +0000 | [diff] [blame] | 2 | // XFAIL: * |
Fariborz Jahanian | 7f89047 | 2009-09-02 00:05:10 +0000 | [diff] [blame] | 3 | |
| 4 | @interface NSView |
| 5 | - (id)initWithView:(id)realView; |
| 6 | @end |
| 7 | |
| 8 | @implementation NSView |
| 9 | - (id)initWithView:(id)realView { |
| 10 | *(NSView *)self = *(NSView *)realView; // expected-error {{indirection cannot be to an interface in non-fragile ABI}} |
| 11 | } |
| 12 | @end |
| 13 | |