1# XFAIL: target={{.*}}-aix{{.*}} 2# UNSUPPORTED: target={{.*}}-zos{{.*}} 3# REQUIRES: object-emission 4# RUN: llvm-mc -dwarf-version 4 %s -filetype=obj -o - | llvm-dwarfdump -debug-line - | FileCheck %s 5# RUN: llvm-mc -dwarf-version 4 %s --fatal-warnings -o - | FileCheck %s --check-prefix=ASM 6# RUN: llvm-mc -dwarf-version 5 %s -filetype=obj -o - | llvm-dwarfdump -debug-line - | FileCheck %s 7# RUN: llvm-mc -dwarf-version 5 %s -o - | FileCheck %s --check-prefix=ASM 8 9## If the DWARF version is less than 5, .file 0 upgrades the version to 5. 10 .file 0 "/test" "root.cpp" 11 .file 1 "/include" "header.h" 12 .file 2 "/test" "root.cpp" 13# CHECK: include_directories[ 0] = "/test" 14# CHECK-NEXT: include_directories[ 1] = "/include" 15# CHECK: file_names[ 0]: 16# CHECK-NEXT: name: "root.cpp" 17# CHECK-NEXT: dir_index: 0 18# CHECK-NEXT: file_names[ 1]: 19# CHECK-NEXT: name: "header.h" 20# CHECK-NEXT: dir_index: 1 21 22# ASM: .file 0 "/test" "root.cpp" 23# ASM: .file 1 "/include" "header.h" 24# ASM-NOT: .file 25