1*11791ae7SSayhaan Siddiqui## Verifies that the extraction of DWARF line number information is correct. 28331f75eSAmir Ayupov 387a57aadSVladislav KhmelevskyRUN: %clangxx %cxxflags %S/Inputs/linenumber.cpp -g -o %t 4ab14eb23SAmir AyupovRUN: llvm-bolt %t -o %t.null --print-reordered --update-debug-sections \ 5d648aa1bSMaksim PanchenkoRUN: --print-debug-info --reorder-blocks=reverse --sequential-disassembly \ 6d648aa1bSMaksim PanchenkoRUN: 2>&1 | FileCheck %s 78331f75eSAmir Ayupov 8*11791ae7SSayhaan Siddiqui## Local variable in f() 98331f75eSAmir AyupovCHECK: movl $0xbeef, -0x4(%rbp) # debug line {{.*}}linenumber.cpp:9 10*11791ae7SSayhaan Siddiqui## Checks that a branch instruction that is inserted by BOLT does not have 11*11791ae7SSayhaan Siddiqui## debug line info associated with it. 128331f75eSAmir AyupovCHECK-NOT: jmp .LFT0 # debug line {{.*}}linenumber.cpp:1 13*11791ae7SSayhaan Siddiqui## Call to f() in g() 148331f75eSAmir AyupovCHECK: callq _Z1fv{{.*}} # debug line {{.*}}linenumber.cpp:19 15*11791ae7SSayhaan Siddiqui## Calls to g() and f() in main 168331f75eSAmir AyupovCHECK: callq _Z1gv{{.*}} # debug line {{.*}}linenumber.cpp:23 178331f75eSAmir AyupovCHECK: callq _Z1fv{{.*}} # debug line {{.*}}linenumber.cpp:23 18