Mercurial > hg > CbC > CbC_llvm
comparison clang/test/Rewriter/weak_byref_objects.m @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | c4bab56944e8 |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
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 | |
4 int main() { | |
5 __weak __block id foo = nil; | |
6 __block id foo2 = nil; | |
7 id foo3 = nil; | |
8 | |
9 void (^myblock)() = ^{ | |
10 foo = nil; | |
11 foo2 = nil; | |
12 [foo3 bar]; | |
13 id foo4 = foo3; | |
14 }; | |
15 } |