WinCOFFObjectWriter: optimize the string table for common suffices
[oota-llvm.git] / test / MC / COFF / secidx.s
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
5 Lfoo:
6         .secidx Lfoo
7         .secidx Lbar
8
9 .section spam
10 Lbar:
11         ret
12
13 // CHECK:       Relocations [
14 // CHECK-NEXT:    0x0 IMAGE_REL_I386_SECTION .text
15 // CHECK-NEXT:    0x4 IMAGE_REL_I386_SECTION spam
16 // CHECK-NEXT:  ]