1*75cdab6dSDaniel Thornburgh; RUN: llvm-objdump --no-print-imm-hex -d --line-numbers %p/Inputs/embedded-source | FileCheck --check-prefix=LINE %s 2*75cdab6dSDaniel Thornburgh; RUN: llvm-objdump --no-print-imm-hex -d --source %p/Inputs/embedded-source | FileCheck --check-prefix=SOURCE %s 34137bc68SScott Linder; REQUIRES: x86-registered-target 4c16b975aSScott Linder 50a2d0c1fSEric Christopher; Source for embedded-source.c 60a2d0c1fSEric Christopher; To regenerate this file: 70a2d0c1fSEric Christopher; clang -gdwarf-5 -gembed-source embedded-source.c -o embedded-source 80a2d0c1fSEric Christopher; 90a2d0c1fSEric Christopher; int main(int argc, char *argv[]) { 100a2d0c1fSEric Christopher; int i = 2; 110a2d0c1fSEric Christopher; i += 1; 120a2d0c1fSEric Christopher; return i; 130a2d0c1fSEric Christopher; } 140a2d0c1fSEric Christopher 1571e2ca6eSFangrui Song; LINE: <main>: 16266877a2SJordan Rupprecht; LINE-NEXT: ; main(): 17c16b975aSScott Linder; LINE-NEXT: ; {{.*}}embedded-source.c:1 18c16b975aSScott Linder; LINE-NEXT: pushq %rbp 19c16b975aSScott Linder; LINE: ; {{.*}}embedded-source.c:2 20c16b975aSScott Linder; LINE-NEXT: movl $2 21c16b975aSScott Linder; LINE: ; {{.*}}embedded-source.c:3 22c16b975aSScott Linder; LINE: addl $1 23c16b975aSScott Linder; LINE: ; {{.*}}embedded-source.c:4 24c16b975aSScott Linder; LINE: retq 25c16b975aSScott Linder 2671e2ca6eSFangrui Song; SOURCE: <main>: 27c16b975aSScott Linder; SOURCE-NEXT: ; int main(int argc, char *argv[]) { 28c16b975aSScott Linder; SOURCE-NEXT: pushq %rbp 29c16b975aSScott Linder; SOURCE: ; int i = 2; 30c16b975aSScott Linder; SOURCE-NEXT: movl $2 31c16b975aSScott Linder; SOURCE: ; i += 1; 32c16b975aSScott Linder; SOURCE: addl $1 33c16b975aSScott Linder; SOURCE: ; return i; 34c16b975aSScott Linder; SOURCE: retq 35