1 // RUN: %clangxx -S -ftime-trace -ftime-trace-granularity=0 -o %T/check-time-trace-ParseDeclarationOrFunctionDefinition %s
2 // RUN: cat %T/check-time-trace-ParseDeclarationOrFunctionDefinition.json \
3 // RUN: | %python -c 'import json, sys; json.dump(json.loads(sys.stdin.read()), sys.stdout, sort_keys=True, indent=2)' \
6 // CHECK-DAG: "name": "ParseDeclarationOrFunctionDefinition"
7 // CHECK-DAG: "detail": "{{.*}}check-time-trace-ParseDeclarationOrFunctionDefinition.cpp:15:1"
8 // CHECK-DAG: "name": "ParseFunctionDefinition"
9 // CHECK-DAG: "detail": "foo"
10 // CHECK-DAG: "name": "ParseFunctionDefinition"
11 // CHECK-DAG: "detail": "bar"
15 void bar() { foo(0); }