mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 14:46:10 +00:00

This patch implements parsing ‘#pragma clang __debug’ as a first step for implementing captured statements. Captured statements are a mechanism for doing outlining in the AST. see http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-January/027540.html. Currently returns StmtEmpty Author: Andy Zhang <andy.zhang@intel.com> Differential Revision: http://llvm-reviews.chandlerc.com/D369 llvm-svn: 179614
15 lines
274 B
C
15 lines
274 B
C
// RUN: %clang_cc1 -verify %s
|
|
|
|
void test1()
|
|
{
|
|
#pragma clang __debug captured x // expected-warning {{extra tokens at end of #pragma clang __debug captured directive}}
|
|
{
|
|
}
|
|
}
|
|
|
|
void test2()
|
|
{
|
|
#pragma clang __debug captured
|
|
int x; // expected-error {{expected '{'}}
|
|
}
|