Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Driver / check-time-trace-ParseDeclarationOrFunctionDefinition.cpp
blobf854cddadbfcc1d9a27d03a0bcb8a662492dde65
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)' \
4 // RUN: | FileCheck %s
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"
13 template <typename T>
14 void foo(T) {}
15 void bar() { foo(0); }