2 // RUN: split-file %s %t
3 // RUN: sed -e "s@INPUT_DIR@%{/t:regex_replacement}@g" \
4 // RUN: %t/reference.output.json.in >> %t/reference.output.json
5 // RUN: %clang -extract-api --product-name=GlobalRecord -target arm64-apple-macosx \
6 // RUN: %t/input1.h -o %t/output.json | FileCheck -allow-empty %s
8 // Generator version is not consistent across test runs, normalize it.
9 // RUN: sed -e "s@\"generator\": \".*\"@\"generator\": \"?\"@g" \
10 // RUN: %t/output.json >> %t/output-normalized.json
11 // RUN: diff %t/reference.output.json %t/output-normalized.json
14 // CHECK-NOT: warning:
21 // Ensure that these symbols are not emitted in the Symbol Graph.
25 struct Foo
{ int a
; };
27 //--- reference.output.json.in
38 "name": "GlobalRecord",
40 "architecture": "arm64",
55 "accessLevel": "public",
56 "declarationFragments": [
58 "kind": "typeIdentifier",
59 "preciseIdentifier": "c:I",
72 "interfaceLanguage": "c",
76 "displayName": "Global Variable",
84 "uri": "file://INPUT_DIR/input1.h"