1e51b9e42SJames Henderson## Test that if the source cannot be found that disassembly is still printed, 29abf668cSMichael Pozulp## that no source is printed, and that we emit a warning. 3e51b9e42SJames Henderson 4e51b9e42SJames Henderson# RUN: sed -e "s,SRC_COMPDIR,%/t,g" %p/Inputs/source-interleave.ll > %t.ll 5e51b9e42SJames Henderson# RUN: sed -e "s,SRC_COMPDIR,%/p/Inputs,g" %p/Inputs/source-interleave.ll > %t2.ll 6e51b9e42SJames Henderson 7e51b9e42SJames Henderson# RUN: llc -o %t.o -filetype=obj -mtriple=x86_64-pc-linux %t.ll 8e51b9e42SJames Henderson# RUN: llc -o %t2.o -filetype=obj -mtriple=x86_64-pc-linux %t2.ll 9e51b9e42SJames Henderson 109abf668cSMichael Pozulp# RUN: llvm-objdump --source %t.o 2> %t.e | FileCheck %s --check-prefixes=CHECK --implicit-check-not='main()' 11e51b9e42SJames Henderson# RUN: llvm-objdump --source %t2.o | FileCheck %s --check-prefixes=CHECK,SOURCE 129abf668cSMichael Pozulp# RUN: FileCheck %s --input-file %t.e --check-prefixes=WARN 13e51b9e42SJames Henderson 14f0f38d9bSGeorge Rimar# WARN: warning: '{{.*}}': failed to find source {{.*}}source-interleave-x86_64.c 15*71e2ca6eSFangrui Song# CHECK: 0000000000000010 <main>: 16e51b9e42SJames Henderson# SOURCE-NEXT: ; int main() { 17e51b9e42SJames Henderson# CHECK-NEXT: 10: 55 pushq %rbp 18