xref: /minix/external/bsd/llvm/dist/llvm/test/MC/COFF/secidx.s (revision 0a6a1f1d)
1// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s | llvm-readobj -s -sr | FileCheck %s
2
3// check that we produce the correct relocation for .secidx
4
5Lfoo:
6	.secidx	Lfoo
7	.short  0
8	.secidx	Lbar
9	.short  0
10
11.section spam
12Lbar:
13	ret
14
15// CHECK:       Relocations [
16// CHECK-NEXT:    0x0 IMAGE_REL_I386_SECTION .text
17// CHECK-NEXT:    0x4 IMAGE_REL_I386_SECTION spam
18// CHECK-NEXT:  ]
19