d840e5ee1a5b8ed3a4e9355a94f459aaedc4a71a
[oota-llvm.git] / test / MC / ELF / empty-dwarf-lines.s
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
2
3 // Test that the dwarf debug_line section contains no line directives.
4
5         .file   1 "test.c"
6         .globl  c
7 c:
8         .asciz   "hi\n"
9
10 // CHECK:      # Section 4
11 // CHECK-NEXT: (('sh_name', 0x0000000c) # '.debug_line'
12 // CHECK-NEXT:  ('sh_type', 0x00000001)
13 // CHECK-NEXT:  ('sh_flags', 0x00000000)
14 // CHECK-NEXT:  ('sh_addr', 0x00000000)
15 // CHECK-NEXT:  ('sh_offset', 0x00000044)
16 // CHECK-NEXT:  ('sh_size', 0x00000027)
17 // CHECK-NEXT:  ('sh_link', 0x00000000)
18 // CHECK-NEXT:  ('sh_info', 0x00000000)
19 // CHECK-NEXT:  ('sh_addralign', 0x00000001)
20 // CHECK-NEXT:  ('sh_entsize', 0x00000000)
21 // CHECK-NEXT: ),