llvm-project/clang/test/Tooling/clang-check-syntax-tree-dum...

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: `-';'