llvm-project/clang/test/SemaObjC/deref-interface.m
Fariborz Jahanian d539d098a4 IRGen support for functions returning objc object
types. Fixes PR7865.

llvm-svn: 110832
2010-08-11 17:37:35 +00:00

14 lines
329 B
Objective-C

// RUN: %clang_cc1 -fobjc-nonfragile-abi -verify -fsyntax-only %s
// XFAIL: *
@interface NSView
- (id)initWithView:(id)realView;
@end
@implementation NSView
- (id)initWithView:(id)realView {
*(NSView *)self = *(NSView *)realView; // expected-error {{indirection cannot be to an interface in non-fragile ABI}}
}
@end