mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-05-14 01:46:41 +00:00

Summary: The issue with the python path is that the path to python on Windows can contain spaces. To make the tests always work, the path to python needs to be surrounded by quotes. This is a companion change to: https://reviews.llvm.org/D50206 Reviewers: asmith, zturner Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D50281 llvm-svn: 339074
28 lines
649 B
C++
28 lines
649 B
C++
// RUN: clang-diff -ast-dump-json %s -- \
|
|
// RUN: | %python -c 'import json, sys; json.dump(json.loads(sys.stdin.read()), sys.stdout, sort_keys=True, indent=2)' \
|
|
// RUN: | FileCheck %s
|
|
|
|
// CHECK: "begin": 311,
|
|
// CHECK: "type": "FieldDecl",
|
|
// CHECK: "end": 319,
|
|
// CHECK: "type": "CXXRecordDecl",
|
|
class A {
|
|
int x;
|
|
};
|
|
|
|
// CHECK: "children": [
|
|
// CHECK-NEXT: {
|
|
// CHECK-NEXT: "begin":
|
|
// CHECK-NEXT: "children": []
|
|
// CHECK-NEXT: "end":
|
|
// CHECK-NEXT: "id":
|
|
// CHECK-NEXT: "type": "CharacterLiteral"
|
|
// CHECK-NEXT: }
|
|
// CHECK: ]
|
|
// CHECK: "type": "VarDecl",
|
|
char nl = '\n';
|
|
|
|
// CHECK: "value": "abc \n\t\u0000\u001f"
|
|
char s[] = "abc \n\t\0\x1f";
|
|
|