зеркало из https://github.com/microsoft/clang.git
Test for my last patch.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80740 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
ce8827a494
Коммит
7f89047870
|
@ -0,0 +1,12 @@
|
||||||
|
// RUN: clang-cc -triple x86_64-apple-darwin9 -verify -fsyntax-only %s
|
||||||
|
|
||||||
|
@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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче