summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenObjC/2007-10-23-GC-WriteBarrier.m
blob: af8508b6463a701d1eb40d3bb8d6c948941f4335 (about) (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_cc1 -emit-llvm %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; 
}