[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Parser / captured-statements.c
blob2993b3578fea8a607967423d935bea50e7ddc14f
1 // RUN: %clang_cc1 -verify %s
3 void test1(void)
5 #pragma clang __debug captured x // expected-warning {{extra tokens at end of #pragma clang __debug captured directive}}
10 void test2(void)
12 #pragma clang __debug captured
13 int x; // expected-error {{expected '{'}}