repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
CodeGen
/
block-3.c
blob
e895a7da1c4b7aec9b0082043e740235183bbbc0
1
// RUN: %clang_cc1 %s -emit-llvm -o - -fblocks -triple x86_64-apple-darwin10
2
3
int
main
(
void
) {
4
^{
5
__attribute__
((
__blocks__
(
byref
)))
int
index
= ({
int
__a
;
int
__b
;
__a
<
__b
?
__b
:
__a
; });
6
};
7
}
8
9
// PR13229
10
typedef
struct
{}
Z
;
11
12
typedef
int
(^
B
)(
Z
);
13
14
void
testPR13229
(
void
) {
15
Z z1
;
16
B b1
= ^(
Z z1
) {
return
1
; };
17
b1
(
z1
);
18
}