1# The .debug_info section says 8-byte addresses, but the assembler
2# will generate a line table with 4-byte addresses (for i686).
3
4# RUN: llvm-mc -filetype=obj -triple i686-linux-gnu %s -o - | \
5# RUN: llvm-dwarfdump -debug-line - 2>&1 | FileCheck %s
6
7# CHECK:      warning: mismatching address size at offset 0x{{[0-9a-f]+}}
8# CHECK-SAME: expected 0x08 found 0x04
9	.text
10	.file	"reduced.c"
11	.globl	main
12main:
13	.file	1 "/tmp" "reduced.c"
14	.loc	1 2 0
15	xorl	%eax, %eax
16	retl
17	.file	2 "/tmp/repeat/repeat/repeat/repeat" "repeat.h"
18
19	.section	.debug_abbrev,"",@progbits
20	.byte	1                       # Abbreviation Code
21	.byte	17                      # DW_TAG_compile_unit
22	.byte	0                       # DW_CHILDREN_no
23	.byte	16                      # DW_AT_stmt_list
24	.byte	23                      # DW_FORM_sec_offset
25	.byte	0                       # EOM(1)
26	.byte	0                       # EOM(2)
27	.byte	0                       # EOM(3)
28
29        .section	.debug_info,"",@progbits
30	.long	.Lend0 - .Lbegin0       # Length of Unit
31.Lbegin0:
32	.short	4                       # DWARF version number
33	.long	.debug_abbrev           # Offset Into Abbrev. Section
34	.byte	8                       # Address Size (in bytes)
35	.byte	1                       # Abbrev [1] 0xb:0x1f DW_TAG_compile_unit
36	.long	.debug_line             # DW_AT_stmt_list
37.Lend0:
38	.section	.debug_line,"",@progbits
39