aboutsummaryrefslogtreecommitdiffstats
path: root/test
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
commit1b953f0761c68244ad46d6dbe1b3676a1745f21c (patch)
tree614199a13c731cd9d83b6d302ecd5e5af9a088f9 /test
parent5f4f5856fe3136d316ce465ba894fb3c70eecae3 (diff)
downloadexternal_llvm-1b953f0761c68244ad46d6dbe1b3676a1745f21c.zip
external_llvm-1b953f0761c68244ad46d6dbe1b3676a1745f21c.tar.gz
external_llvm-1b953f0761c68244ad46d6dbe1b3676a1745f21c.tar.bz2
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43252 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-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 0000000..866c330
--- /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;
+}