From a91547790bc18253eb9e87743d76628083ec2f49 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 23 Oct 2007 18:07:23 +0000 Subject: new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43252 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/FrontendObjC/2007-10-23-GC-WriteBarrier.m | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/FrontendObjC/2007-10-23-GC-WriteBarrier.m (limited to 'test/FrontendObjC') 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; +} -- cgit v1.1