xref: /aosp_15_r20/external/clang/test/Parser/captured-statements.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: %clang_cc1 -verify %s
2*67e74705SXin Li 
test1()3*67e74705SXin Li void test1()
4*67e74705SXin Li {
5*67e74705SXin Li   #pragma clang __debug captured x // expected-warning {{extra tokens at end of #pragma clang __debug captured directive}}
6*67e74705SXin Li   {
7*67e74705SXin Li   }
8*67e74705SXin Li }
9*67e74705SXin Li 
test2()10*67e74705SXin Li void test2()
11*67e74705SXin Li {
12*67e74705SXin Li   #pragma clang __debug captured
13*67e74705SXin Li   int x; // expected-error {{expected '{'}}
14*67e74705SXin Li }
15