14 lines · c
1/* This test checks the handling of YAML profile with different block orders.2# RUN: %clang %cflags %s -o %t.exe3# RUN: link_fdata %s %t.exe %t.fdata4# RUN: llvm-bolt %t.exe -o %t.null -data %t.fdata -w %t.yaml5# RUN: FileCheck %s --input-file %t.yaml --check-prefix=CHECK-BINARY6# CHECK-BINARY: dfs-order: false7# RUN: llvm-bolt %t.exe -o %t.null -data %t.fdata -w %t.yaml --profile-use-dfs8# RUN: FileCheck %s --input-file %t.yaml --check-prefix=CHECK-DFS9# CHECK-DFS: dfs-order: true10 11# FDATA: 0 [unknown] 0 1 main 0 0 012*/13int main() { return 0; }14