blob: 7b7cc3d2c49b48153c70d768b047c2c6c36c5332 [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 +00004
5int main(int argc, char **argv) {
6 __block void(*bobTheFunction)(void);
7 __block void(^bobTheBlock)(void);
8
9 bobTheBlock = ^{;};
10
11 __block int JJJJ;
12 __attribute__((__blocks__(byref))) int III;
13
14 int (^XXX)(void) = ^{ return III+JJJJ; };
15
16 return 0;
17}
18