1@ RUN: llvm-mc -triple armv7-apple-darwin10 -filetype=obj -o - < %s | llvm-readobj --macho-data-in-code - | FileCheck %s
2        .text
3_foo:
4.data_region
5        .long 10
6.end_data_region
7.data_region jt32
8        .long 1
9.end_data_region
10.data_region jt16
11        .short 2
12.end_data_region
13.data_region jt8
14        .byte 3
15.end_data_region
16
17@ CHECK: File: <stdin>
18@ CHECK: Format: Mach-O arm
19@ CHECK: Arch: arm
20@ CHECK: AddressSize: 32bit
21@ CHECK: DataInCode {
22@ CHECK:   Data offset: 300
23@ CHECK:   Data size: 32
24@ CHECK:   Data entries [
25@ CHECK:     Entry {
26@ CHECK:       Index: 0
27@ CHECK:       Offset: 0
28@ CHECK:       Length: 4
29@ CHECK:       Kind: 1
30@ CHECK:     }
31@ CHECK:     Entry {
32@ CHECK:       Index: 1
33@ CHECK:       Offset: 4
34@ CHECK:       Length: 4
35@ CHECK:       Kind: 4
36@ CHECK:     }
37@ CHECK:     Entry {
38@ CHECK:       Index: 2
39@ CHECK:       Offset: 8
40@ CHECK:       Length: 2
41@ CHECK:       Kind: 3
42@ CHECK:     }
43@ CHECK:     Entry {
44@ CHECK:       Index: 3
45@ CHECK:       Offset: 10
46@ CHECK:       Length: 1
47@ CHECK:       Kind: 2
48@ CHECK:     }
49@ CHECK:   ]
50@ CHECK: }
51