brintos

brintos / llvm-project-archived public Read only

0
0
Text · 649 B · cc2bb08 Raw
28 lines · cpp
1// RUN: clang-diff -ast-dump-json %s -- \2// RUN: | %python -c 'import json, sys; json.dump(json.loads(sys.stdin.read()), sys.stdout, sort_keys=True, indent=2)' \3// RUN: | FileCheck %s4 5// CHECK: "begin": 311,6// CHECK: "type": "FieldDecl",7// CHECK: "end": 319,8// CHECK: "type": "CXXRecordDecl",9class A {10  int x;11};12 13// CHECK: "children": [14// CHECK-NEXT: {15// CHECK-NEXT: "begin":16// CHECK-NEXT: "children": []17// CHECK-NEXT: "end":18// CHECK-NEXT: "id":19// CHECK-NEXT: "type": "CharacterLiteral"20// CHECK-NEXT: }21// CHECK: ]22// CHECK: "type": "VarDecl",23char nl = '\n';24 25// CHECK: "value": "abc \n\t\u0000\u001f"26char s[] = "abc \n\t\0\x1f";27 28