[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Parser / block-block-storageclass.c
blob0045fcfbabeb1991b16f61c2adc94c647a326dab
1 // RUN: %clang_cc1 -fsyntax-only -fblocks -verify %s
2 // expected-no-diagnostics
3 int printf(const char *, ...);
4 void _Block_byref_release(void*src){}
6 int main(void) {
7 __block int X = 1234;
8 __block const char * message = "HELLO";
10 X = X - 1234;
12 X += 1;
14 printf ("%s(%d)\n", message, X);
15 X -= 1;
17 return X;