mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-05-16 10:56:21 +00:00

This is useful to experiment/develop syntax trees. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D95526
10 lines
323 B
C++
10 lines
323 B
C++
// RUN: clang-check -syntax-tree-dump "%s" -- 2>&1 | FileCheck %s
|
|
int abc;
|
|
// CHECK: TranslationUnit Detached
|
|
// CHECK-NEXT: `-SimpleDeclaration
|
|
// CHECK-NEXT: |-'int'
|
|
// CHECK-NEXT: |-DeclaratorList Declarators
|
|
// CHECK-NEXT: | `-SimpleDeclarator ListElement
|
|
// CHECK-NEXT: | `-'abc'
|
|
// CHECK-NEXT: `-';'
|