1# REQUIRES: default_triple 2# RUN: llvm-mc -dwarf-version 4 %s -filetype=obj -o - | llvm-dwarfdump -debug-line - | FileCheck %s --check-prefixes=CHECK,CHECK-4 3# RUN: llvm-mc -dwarf-version 4 %s -filetype=asm -o - | FileCheck %s --check-prefixes=ASM,ASM-4 4# RUN: llvm-mc -dwarf-version 4 %s -filetype=asm -o - 2>&1 | FileCheck %s --check-prefix=WARN 5# RUN: llvm-mc -dwarf-version 5 %s -filetype=obj -o - | llvm-dwarfdump -debug-line - | FileCheck %s --check-prefixes=CHECK,CHECK-5 6# RUN: llvm-mc -dwarf-version 5 %s -filetype=asm -o - | FileCheck %s --check-prefixes=ASM,ASM-5 7 .file 0 "/test" "root.cpp" 8 .file 1 "/include" "header.h" 9 .file 2 "/test" "root.cpp" 10# CHECK-5: include_directories[ 0] = "/test" 11# CHECK-4-NOT: include_directories[ 0] 12# CHECK: include_directories[ 1] = "/include" 13# CHECK-4: include_directories[ 2] = "/test" 14# CHECK-NOT: include_directories 15# CHECK-4-NOT: file_names[ 0] 16# CHECK-5: file_names[ 0]: 17# CHECK-5-NEXT: name: "root.cpp" 18# CHECK-5-NEXT: dir_index: 0 19# CHECK: file_names[ 1]: 20# CHECK-NEXT: name: "header.h" 21# CHECK-NEXT: dir_index: 1 22# CHECK-4: file_names[ 2]: 23# CHECK-4-NEXT: name: "root.cpp" 24# CHECK-4-NEXT: dir_index: 2 25 26# ASM-NOT: .file 27# ASM-5: .file 0 "/test" "root.cpp" 28# ASM: .file 1 "/include" "header.h" 29# ASM-4: .file 2 "/test" "root.cpp" 30# ASM-NOT: .file 31 32# WARN: file 0 not supported prior to DWARF-5 33# WARN-NEXT: .file 0 34# WARN-NEXT: ^ 35