2013-11-15 10:31:47 +08:00
|
|
|
# RUN: yaml2obj %p/Inputs/nop.obj.yaml > %t.obj
|
|
|
|
|
|
|
|
# RUN: echo "MZ Hello world" > %t.stub
|
2013-11-25 10:00:00 +08:00
|
|
|
# RUN: lld -flavor link /out:%t.exe /entry:start /subsystem:console \
|
|
|
|
# RUN: /stub:%t.stub -- %t.obj
|
2013-11-15 16:00:22 +08:00
|
|
|
# RUN: FileCheck -check-prefix=FILE %s < %t.exe
|
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=READOBJ %s
|
2013-11-15 10:31:47 +08:00
|
|
|
|
2013-11-15 16:00:22 +08:00
|
|
|
FILE: MZ Hello world
|
|
|
|
|
|
|
|
READOBJ: Format: COFF-i386
|