blob: 97ba113492176836d748eedeaf8a17a487916204 [file] [log] [blame]
Douglas Gregor87c30072010-07-26 04:08:02 +00001// RUN: %clang_cc1 -fsyntax-only -fblocks -verify %s
Daniel Dunbar23afaad2009-11-17 08:57:36 +00002int printf(const char *, ...);
Steve Naroff042f9552008-09-02 15:20:19 +00003void _Block_byref_release(void*src){}
4
5int 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}