Douglas Gregor | 87c3007 | 2010-07-26 04:08:02 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -fblocks -verify %s |
Daniel Dunbar | 23afaad | 2009-11-17 08:57:36 +0000 | [diff] [blame] | 2 | int printf(const char *, ...); |
Steve Naroff | 042f955 | 2008-09-02 15:20:19 +0000 | [diff] [blame] | 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 | } |