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