Home | History | Annotate | Download | only in ELF
      1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -sd | FileCheck %s
      2 
      3 // Test that two subsequent .loc directives generate two
      4 // distinct line table entries.
      5 
      6 // CHECK:        Section {
      7 // CHECK:          Name: .debug_line
      8 // CHECK-NEXT:     Type: SHT_PROGBITS
      9 // CHECK-NEXT:     Flags [
     10 // CHECK-NEXT:     ]
     11 // CHECK-NEXT:     Address: 0x0
     12 // CHECK-NEXT:     Offset:
     13 // CHECK-NEXT:     Size: 56
     14 // CHECK-NEXT:     Link: 0
     15 // CHECK-NEXT:     Info: 0
     16 // CHECK-NEXT:     AddressAlignment: 1
     17 // CHECK-NEXT:     EntrySize: 0
     18 // CHECK-NEXT:     SectionData (
     19 // CHECK-NEXT:       0000: 34000000 02001C00 00000101 FB0E0D00
     20 // CHECK-NEXT:       0010: 01010101 00000001 00000100 666F6F2E
     21 // CHECK-NEXT:       0020: 63000000 00000009 02000000 00000000
     22 // CHECK-NEXT:       0030: 00011302 01000101
     23 // CHECK-NEXT:     )
     24 // CHECK-NEXT:   }
     25 
     26 	.section	.debug_line,"",@progbits
     27 	.text
     28 
     29 	.file 1 "foo.c"
     30 	.loc 1 1 0
     31 	.loc 1 2 0
     32 	nop
     33