blob: 9bfbfbd614e5992246dace4d2189994ebf78033f [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 %s -fsyntax-only -verify -fblocks
Steve Naroff9eae5762008-09-18 16:44:58 +00002
Daniel Dunbar23afaad2009-11-17 08:57:36 +00003int printf(const char *, ...);
Steve Naroff9eae5762008-09-18 16:44:58 +00004void _Block_byref_release(void*src){}
5
6int main() {
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}