2010-07-26 12:08:02 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -fblocks -verify %s
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2009-11-17 16:57:36 +08:00
|
|
|
int printf(const char *, ...);
|
2008-09-02 23:20:19 +08:00
|
|
|
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;
|
|
|
|
}
|