repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
[clang] Handle __declspec() attributes in using
[llvm-project.git]
/
clang
/
test
/
Rewriter
/
weak_byref_objects.m
blob
52111c10edc01749b42358b1cfb14791ace59886
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(void) {
5
__weak __block id foo = nil;
6
__block id foo2 = nil;
7
id foo3 = nil;
8
9
void (^myblock)(void) = ^{
10
foo = nil;
11
foo2 = nil;
12
[foo3 bar];
13
id foo4 = foo3;
14
};
15
}