diff options
Diffstat (limited to 'test/Sema/block-storageclass.c')
-rw-r--r-- | test/Sema/block-storageclass.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/Sema/block-storageclass.c b/test/Sema/block-storageclass.c new file mode 100644 index 0000000..3d2527b --- /dev/null +++ b/test/Sema/block-storageclass.c @@ -0,0 +1,18 @@ +// RUN: clang-cc %s -fsyntax-only -verify -fblocks + +#include <stdio.h> +void _Block_byref_release(void*src){} + +int main() { + __block int X = 1234; + __block const char * message = "HELLO"; + + X = X - 1234; + + X += 1; + + printf ("%s(%d)\n", message, X); + X -= 1; + + return X; +} |