gn build: Merge r374476
[llvm-complete.git] / test / MC / COFF / symidx.s
blob5c1e740283c844fb6e4ef2f43055a83e662b2f64
1 // RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | llvm-objdump -s -t - | FileCheck %s
2 .text
3 foo:
4 ret
5 bar:
6 ret
7 .data
8 .symidx bar
9 .symidx foo
11 // CHECK: SYMBOL TABLE:
12 // CHECK: [ [[FOO:[1-9]]]](sec 1)(fl 0x00)(ty 0)(scl 3) (nx 0) 0x00000000 foo
13 // CHECK-NEXT: [ [[BAR:[1-9]]]](sec 1)(fl 0x00)(ty 0)(scl 3) (nx 0) 0x00000001 bar
14 // CHECK: Contents of section .data:
15 // CHECK-NEXT: 0000 0[[BAR]]000000 0[[FOO]]000000