Mercurial > hg > CbC > CbC_llvm
annotate clang/test/Rewriter/weak_byref_objects.m @ 237:c80f45b162ad llvm-original
add some fix
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:47:54 +0900 (2022-11-09) |
parents | c4bab56944e8 |
children |
rev | line source |
---|---|
150 | 1 // RUN: %clang_cc1 -fblocks -triple i386-apple-darwin9 -fobjc-gc -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o - |
2 | |
3 #define nil 0 | |
236 | 4 int main(void) { |
150 | 5 __weak __block id foo = nil; |
6 __block id foo2 = nil; | |
7 id foo3 = nil; | |
8 | |
236 | 9 void (^myblock)(void) = ^{ |
150 | 10 foo = nil; |
11 foo2 = nil; | |
12 [foo3 bar]; | |
13 id foo4 = foo3; | |
14 }; | |
15 } |