1 /* This test checks the handling of YAML profile with different block orders.
2 # RUN: %clang %cflags %s -o %t.exe
3 # RUN: link_fdata %s %t.exe %t.fdata
4 # RUN: llvm-bolt %t.exe -o %t.null -data %t.fdata -w %t.yaml
5 # RUN: FileCheck %s --input-file %t.yaml --check-prefix=CHECK-BINARY
6 # CHECK-BINARY: dfs-order: false
7 # RUN: llvm-bolt %t.exe -o %t.null -data %t.fdata -w %t.yaml --profile-use-dfs
8 # RUN: FileCheck %s --input-file %t.yaml --check-prefix=CHECK-DFS
9 # CHECK-DFS: dfs-order: true
11 # FDATA: 0 [unknown] 0 1 main 0 0 0
13 int main() { return 0; }