[cfe-commits] r80740 - /cfe/trunk/test/SemaObjC/deref-interface.m
Fariborz Jahanian
fjahanian at apple.com
Tue Sep 1 17:05:10 PDT 2009
Author: fjahanian
Date: Tue Sep 1 19:05:10 2009
New Revision: 80740
URL: http://llvm.org/viewvc/llvm-project?rev=80740&view=rev
Log:
Test for my last patch.
Added:
cfe/trunk/test/SemaObjC/deref-interface.m
Added: cfe/trunk/test/SemaObjC/deref-interface.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/deref-interface.m?rev=80740&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/deref-interface.m (added)
+++ cfe/trunk/test/SemaObjC/deref-interface.m Tue Sep 1 19:05:10 2009
@@ -0,0 +1,12 @@
+// RUN: clang-cc -triple x86_64-apple-darwin9 -verify -fsyntax-only %s
+
+ at interface NSView
+ - (id)initWithView:(id)realView;
+ at end
+
+ at implementation NSView
+ - (id)initWithView:(id)realView {
+ *(NSView *)self = *(NSView *)realView; // expected-error {{indirection cannot be to an interface in non-fragile ABI}}
+ }
+ at end
+
More information about the cfe-commits
mailing list