Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
dbd32c20c529430fe1d22d87317f039849b8b0bb
/
.
/
test
/
Sema
/
block-storageclass.c
blob: 662bd738c839eaf6fca24a306c211d0f5e43729b [
file
] [
log
] [
blame
]
// RUN: clang %s -fsyntax-only -verify
#include
<stdio.h>
void
_Block_byref_release
(
void
*
src
){}
int
main
()
{
__block
int
X
=
1234
;
__block
const
char
*
message
=
"HELLO"
;
X
=
X
-
1234
;
X
+=
1
;
printf
(
"%s(%d)\n"
,
message
,
X
);
X
-=
1
;
return
X
;
}