repo.or.cz
/
clang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Do not warn with -Wuninitialized when the member is used in a sizeof or address-of...
[clang.git]
/
test
/
Parser
/
block-block-storageclass.c
blob
97ba113492176836d748eedeaf8a17a487916204
1
// RUN: %clang_cc1 -fsyntax-only -fblocks -verify %s
2
int
printf
(
const char
*, ...);
3
void
_Block_byref_release
(
void
*
src
){}
4
5
int
main
() {
6
__block
int
X
=
1234
;
7
__block
const char
*
message
=
"HELLO"
;
8
9
X
=
X
-
1234
;
10
11
X
+=
1
;
12
13
printf
(
"%s(%d)
\n
"
,
message
,
X
);
14
X
-=
1
;
15
16
return
X
;
17
}