captured-statements.c 274 B

1234567891011121314
  1. // RUN: %clang_cc1 -verify %s
  2. void test1()
  3. {
  4. #pragma clang __debug captured x // expected-warning {{extra tokens at end of #pragma clang __debug captured directive}}
  5. {
  6. }
  7. }
  8. void test2()
  9. {
  10. #pragma clang __debug captured
  11. int x; // expected-error {{expected '{'}}
  12. }