xref: /aosp_15_r20/external/clang/test/CodeGenObjC/2007-10-23-GC-WriteBarrier.m (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li// RUN: %clang_cc1 -emit-llvm %s -o /dev/null -fobjc-gc
2*67e74705SXin Li// rdar://5541393
3*67e74705SXin Li
4*67e74705SXin Litypedef unsigned int NSUInteger;
5*67e74705SXin Li__attribute__((objc_gc(strong))) float *_scores;
6*67e74705SXin Li
7*67e74705SXin Livoid foo(int i, float f) {
8*67e74705SXin Li  _scores[i] = f;
9*67e74705SXin Li}
10