1 ; RUN: llvm-objdump -disassemble -line-numbers %p/Inputs/embedded-source | FileCheck --check-prefix=LINE %s
2 ; RUN: llvm-objdump -disassemble -source %p/Inputs/embedded-source | FileCheck --check-prefix=SOURCE %s
3 ; REQUIRES: x86-registered-target
5 ; Source for embedded-source.c
6 ; To regenerate this file:
7 ; clang -gdwarf-5 -gembed-source embedded-source.c -o embedded-source
9 ; int main(int argc, char *argv[]) {
16 ; LINE-NEXT: ; {{.*}}embedded-source.c:1
17 ; LINE-NEXT: pushq %rbp
18 ; LINE: ; {{.*}}embedded-source.c:2
20 ; LINE: ; {{.*}}embedded-source.c:3
22 ; LINE: ; {{.*}}embedded-source.c:4
26 ; SOURCE-NEXT: ; int main(int argc, char *argv[]) {
27 ; SOURCE-NEXT: pushq %rbp
28 ; SOURCE: ; int i = 2;
29 ; SOURCE-NEXT: movl $2