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: 57
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: 35000000 04001D00 00000101 01FB0E0D  |5...............|
20// CHECK-NEXT:       0010: 00010101 01000000 01000001 00666F6F  |.............foo|
21// CHECK-NEXT:       0020: 2E630000 00000000 09020000 00000000  |.c..............|
22// CHECK-NEXT:       0030: 00000113 02010001 01                 |.........|
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