Chris Lattner | ae0ee03 | 2008-12-04 23:20:07 +0000 | [diff] [blame] | 1 | // RUN: clang %s -fsyntax-only -verify -fblocks |
Steve Naroff | 9eae576 | 2008-09-18 16:44:58 +0000 | [diff] [blame] | 2 | |
3 | #include <stdio.h> | ||||
4 | void _Block_byref_release(void*src){} | ||||
5 | |||||
6 | int 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 | } |