// RUN: llvm-mc -triple x86_64-unknown-linux-gnu -filetype obj -g -dwarf-version 4 -o %t %s
// RUN: llvm-dwarfdump -debug-info -debug-line %t | FileCheck %s --check-prefixes=CHECK,DWARF4
// RUN: llvm-mc -triple x86_64-unknown-linux-gnu -filetype obj -g -dwarf-version 5 -o %t %s
// RUN: llvm-dwarfdump -debug-info -debug-line %t | FileCheck %s --check-prefixes=CHECK,DWARF5
// CHECK: DW_TAG_compile_unit
// CHECK-NOT: DW_TAG_
// CHECK:
// CHECK: DW_TAG_label
// CHECK-NOT: DW_TAG_
// CHECK:
// DWARF4: include_directories = "/MyTest/Inputs"
// DWARF4: file_names:
// DWARF4-NEXT: name: "other.S"
// DWARF4-NEXT: dir_index: 1
// DWARF5: include_directories =
// DWARF5-NOT: include_directories =
// DWARF5: file_names:
// DWARF5-NEXT: name: "/MyTest/Inputs/other.S"
// DWARF5-NEXT: dir_index: 0
// DWARF5-NOT: file_names:
// RUN: llvm-mc -triple=x86_64 -filetype=obj -g -dwarf-version=4 -fdebug-prefix-map=/MyTest=/src_root %s -o %t.4.o
// RUN: llvm-dwarfdump -debug-info -debug-line %t.4.o | FileCheck %s --check-prefixes=MAP,MAP_V4
// RUN: llvm-mc -triple=x86_64 -filetype=obj -g -dwarf-version=5 -fdebug-prefix-map=/MyTest=/src_root %s -o %t.5.o
// RUN: llvm-dwarfdump -debug-info -debug-line %t.5.o | FileCheck %s --check-prefixes=MAP,MAP_V5
// MAP-LABEL: DW_TAG_compile_unit
// MAP:
// MAP-LABEL: DW_TAG_label
// MAP:
// MAP_V4: include_directories = "/src_root/Inputs"
// MAP_V4-NEXT: file_names:
// MAP_V4-NEXT: name: "other.S"
// MAP_V4-NEXT: dir_index: 1
// MAP_V5: include_directories = "{{.*}}"
// MAP_V5-NEXT: file_names:
// MAP_V5-NEXT: name: "/src_root/Inputs/other.S"
// MAP_V5-NEXT: dir_index: 0
# 1 "/MyTest/Inputs/other.S"
foo:
nop
nop
nop