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] Handle __declspec() attributes in using
[llvm-project.git]
/
clang
/
test
/
Parser
/
block-block-storageclass.c
blob
0045fcfbabeb1991b16f61c2adc94c647a326dab
1
// RUN: %clang_cc1 -fsyntax-only -fblocks -verify %s
2
// expected-no-diagnostics
3
int
printf
(
const char
*, ...);
4
void
_Block_byref_release
(
void
*
src
){}
5
6
int
main
(
void
) {
7
__block
int
X
=
1234
;
8
__block
const char
*
message
=
"HELLO"
;
9
10
X
=
X
-
1234
;
11
12
X
+=
1
;
13
14
printf
(
"%s(%d)
\n
"
,
message
,
X
);
15
X
-=
1
;
16
17
return
X
;
18
}