25 lines · plain
1// REQUIRES: x86-registered-target2/// DWARF32 debug info is produced by default, when neither -gdwarf32 nor -gdwarf64 is given.3// RUN: %clang -cc1as -triple x86_64-pc-linux-gnu -filetype obj -debug-info-kind=limited -dwarf-version=4 %s -o %t4// RUN: llvm-dwarfdump -all %t | FileCheck %s --check-prefixes=CHECK,DWARF325/// -gdwarf64 causes generating DWARF64 debug info.6// RUN: %clang -cc1as -triple x86_64-pc-linux-gnu -filetype obj -gdwarf64 -debug-info-kind=limited -dwarf-version=4 %s -o %t7// RUN: llvm-dwarfdump -all %t | FileCheck %s --check-prefixes=CHECK,DWARF648/// -gdwarf32 is also handled and produces DWARF32 debug info.9// RUN: %clang -cc1as -triple x86_64-pc-linux-gnu -filetype obj -gdwarf32 -debug-info-kind=limited -dwarf-version=4 %s -o %t10// RUN: llvm-dwarfdump -all %t | FileCheck %s --check-prefixes=CHECK,DWARF3211 12// CHECK: .debug_info contents:13// DWARF32-NEXT: format = DWARF3214// DWARF64-NEXT: format = DWARF6415 16// CHECK: .debug_line contents:17// CHECK-NEXT: debug_line[18// CHECK-NEXT: Line table prologue:19// CHECK-NEXT: total_length:20// DWARF32-NEXT: format: DWARF3221// DWARF64-NEXT: format: DWARF6422 23.text24 nop25