[cfe-commits] r82747 - /cfe/trunk/test/CodeGenObjC/objc2-weak-ivar-debug.m
John McCall
rjmccall at apple.com
Thu Sep 24 19:18:37 PDT 2009
Author: rjmccall
Date: Thu Sep 24 21:18:37 2009
New Revision: 82747
URL: http://llvm.org/viewvc/llvm-project?rev=82747&view=rev
Log:
Add a reduced test case for the weak ivar infinite recursion.
Added:
cfe/trunk/test/CodeGenObjC/objc2-weak-ivar-debug.m
Added: cfe/trunk/test/CodeGenObjC/objc2-weak-ivar-debug.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/objc2-weak-ivar-debug.m?rev=82747&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenObjC/objc2-weak-ivar-debug.m (added)
+++ cfe/trunk/test/CodeGenObjC/objc2-weak-ivar-debug.m Thu Sep 24 21:18:37 2009
@@ -0,0 +1,15 @@
+// RUN: clang-cc -triple x86_64-apple-darwin9 -fobjc-gc -g -emit-llvm -o - %s &&
+// RUN: clang-cc -triple i386-apple-darwin9 -fobjc-gc -g -emit-llvm -o - %s
+
+// rdar://7252252
+ at interface Loop {
+ at public
+ __weak Loop *_loop;
+}
+ at end
+
+ at implementation Loop @end
+
+void loop(Loop *L) {
+ L->_loop = 0;
+}
More information about the cfe-commits
mailing list