summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC/objc2-weak-ivar-debug.m
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-09-25 02:18:37 +0000
committerJohn McCall <rjmccall@apple.com>2009-09-25 02:18:37 +0000
commit6cb02c1d7e5bee8537fa9fdaa52da1a1a8b3dc8b (patch)
tree840861722d30628b557c8c9f30296a9f4e84560c /clang/test/CodeGenObjC/objc2-weak-ivar-debug.m
parente1883100a395180465b007c12860c124a6994101 (diff)
downloadbcm5719-llvm-6cb02c1d7e5bee8537fa9fdaa52da1a1a8b3dc8b.tar.gz
bcm5719-llvm-6cb02c1d7e5bee8537fa9fdaa52da1a1a8b3dc8b.zip
Add a reduced test case for the weak ivar infinite recursion.
llvm-svn: 82747
Diffstat (limited to 'clang/test/CodeGenObjC/objc2-weak-ivar-debug.m')
-rw-r--r--clang/test/CodeGenObjC/objc2-weak-ivar-debug.m15
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/objc2-weak-ivar-debug.m b/clang/test/CodeGenObjC/objc2-weak-ivar-debug.m
new file mode 100644
index 00000000000..24a7757b9ac
--- /dev/null
+++ b/clang/test/CodeGenObjC/objc2-weak-ivar-debug.m
@@ -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
+@interface Loop {
+@public
+ __weak Loop *_loop;
+}
+@end
+
+@implementation Loop @end
+
+void loop(Loop *L) {
+ L->_loop = 0;
+}
OpenPOWER on IntegriCloud