aboutsummaryrefslogtreecommitdiff
path: root/test/FrontendObjC
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-10-23 18:07:23 +0000
committerChris Lattner <sabre@nondot.org>2007-10-23 18:07:23 +0000
commita91547790bc18253eb9e87743d76628083ec2f49 (patch)
tree614199a13c731cd9d83b6d302ecd5e5af9a088f9 /test/FrontendObjC
parentee19b866c3789229f00313a12ad4da981c353fe1 (diff)
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43252 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendObjC')
-rw-r--r--test/FrontendObjC/2007-10-23-GC-WriteBarrier.m9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/FrontendObjC/2007-10-23-GC-WriteBarrier.m b/test/FrontendObjC/2007-10-23-GC-WriteBarrier.m
new file mode 100644
index 0000000000..866c330488
--- /dev/null
+++ b/test/FrontendObjC/2007-10-23-GC-WriteBarrier.m
@@ -0,0 +1,9 @@
+// RUN: %llvmgcc -x objective-c -c %s -o /dev/null -fobjc-gc
+// rdar://5541393
+
+typedef unsigned int NSUInteger;
+__attribute__((objc_gc(strong))) float *_scores;
+
+void foo(int i, float f) {
+ _scores[i] = f;
+}