xref: /llvm-project/llvm/test/tools/llvm-readobj/COFF/codeview-label.test (revision dbf520f617440d62ca46f64cdc41159945911902)
1*dbf520f6SGeorgii Rymar; RUN: llvm-readobj --codeview %S/Inputs/codeview-label.obj | FileCheck %s
2*dbf520f6SGeorgii Rymar
3*dbf520f6SGeorgii Rymar; CHECK-LABEL:  Label (0x1000) {
4*dbf520f6SGeorgii Rymar; CHECK-NEXT:     TypeLeafKind: LF_LABEL (0xE)
5*dbf520f6SGeorgii Rymar; CHECK-NEXT:     Mode: Near (0x0)
6*dbf520f6SGeorgii Rymar; CHECK-NEXT:   }
7*dbf520f6SGeorgii Rymar
8*dbf520f6SGeorgii Rymar; To reproduce codeview-label.obj:
9*dbf520f6SGeorgii Rymar; $ cat codeview-label.asm
10*dbf520f6SGeorgii Rymar;         .model flat, C
11*dbf520f6SGeorgii Rymar;         .code
12*dbf520f6SGeorgii Rymar;         public  foo
13*dbf520f6SGeorgii Rymar; foo:
14*dbf520f6SGeorgii Rymar;         ret
15*dbf520f6SGeorgii Rymar; end
16*dbf520f6SGeorgii Rymar; $ ml -c -Zi codeview-label.asm
17