2013-08-03 05:26:14 +08:00
|
|
|
# Test if the linker can properly parse the .drectve section contents.
|
2013-09-04 08:51:51 +08:00
|
|
|
# "drectve.obj" contains "/subsystem:console,42.195 -?foo" in its .drectve
|
2013-08-03 05:26:14 +08:00
|
|
|
# section.
|
|
|
|
|
|
|
|
# RUN: yaml2obj %p/Inputs/drectve.obj.yaml > %t.obj
|
|
|
|
#
|
2013-09-12 13:09:01 +08:00
|
|
|
# RUN: lld -flavor link /out:%t.exe /entry:start -- %t.obj >& %t.log
|
2013-09-04 08:51:51 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=HEADER %s
|
|
|
|
# RUN: echo >> %t.log
|
|
|
|
# RUN: FileCheck -check-prefix=ERROR %s < %t.log
|
2013-08-03 05:26:14 +08:00
|
|
|
|
2013-09-04 08:51:51 +08:00
|
|
|
HEADER: MajorOperatingSystemVersion: 42
|
|
|
|
HEADER: MinorOperatingSystemVersion: 195
|
|
|
|
|
|
|
|
ERROR-NOT: foo
|