зеркало из https://github.com/microsoft/clang-1.git
19 строки
329 B
C
19 строки
329 B
C
// RUN: clang %s -fsyntax-only -verify -fblocks
|
|
|
|
#include <stdio.h>
|
|
|
|
int main(int argc, char **argv) {
|
|
__block void(*bobTheFunction)(void);
|
|
__block void(^bobTheBlock)(void);
|
|
|
|
bobTheBlock = ^{;};
|
|
|
|
__block int JJJJ;
|
|
__attribute__((__blocks__(byref))) int III;
|
|
|
|
int (^XXX)(void) = ^{ return III+JJJJ; };
|
|
|
|
return 0;
|
|
}
|
|
|