mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-05 04:38:37 +00:00
0de0dd4923
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
14 lines
239 B
C
14 lines
239 B
C
// RUN: %clang_cc1 -E %s | FileCheck %s
|
|
|
|
// Test pragma clang __debug captured, for Captured Statements
|
|
|
|
void test1()
|
|
{
|
|
#pragma clang __debug captured
|
|
{
|
|
}
|
|
// CHECK: void test1()
|
|
// CHECK: {
|
|
// CHECK: #pragma clang __debug captured
|
|
}
|