2017-08-22 11:15:28 +08:00
|
|
|
# REQUIRES: manifest_tool
|
2016-04-19 09:21:58 +08:00
|
|
|
|
2017-07-08 11:06:10 +08:00
|
|
|
# RUN: yaml2obj %p/Inputs/ret42.yaml > %t.obj
|
|
|
|
# RUN: lld-link /out:%t.exe /entry:main \
|
|
|
|
# RUN: /manifest:embed \
|
|
|
|
# RUN: /manifestuac:"level='requireAdministrator'" \
|
|
|
|
# RUN: /manifestinput:%p/Inputs/manifestinput.test %t.obj
|
2019-05-01 13:49:01 +08:00
|
|
|
# RUN: llvm-readobj --coff-resources --file-headers %t.exe | FileCheck %s \
|
2017-07-08 11:06:10 +08:00
|
|
|
# RUN: -check-prefix TEST_EMBED
|
|
|
|
|
2018-04-05 03:15:55 +08:00
|
|
|
TEST_EMBED: ResourceTableRVA: 0x2000
|
2018-05-05 00:45:57 +08:00
|
|
|
TEST_EMBED-NEXT: ResourceTableSize: 0x2A0
|
2017-07-08 11:06:10 +08:00
|
|
|
TEST_EMBED-DAG: Resources [
|
2017-10-28 03:23:12 +08:00
|
|
|
TEST_EMBED-NEXT: Total Number of Resources: 1
|
2017-07-08 11:06:10 +08:00
|
|
|
TEST_EMBED-DAG: Number of String Entries: 0
|
|
|
|
TEST_EMBED-NEXT: Number of ID Entries: 1
|
2019-04-25 07:26:30 +08:00
|
|
|
TEST_EMBED-NEXT: Type: MANIFEST (ID 24) [
|
2017-07-08 11:06:10 +08:00
|
|
|
TEST_EMBED-NEXT: Table Offset: 0x18
|
|
|
|
TEST_EMBED-NEXT: Number of String Entries: 0
|
|
|
|
TEST_EMBED-NEXT: Number of ID Entries: 1
|
|
|
|
TEST_EMBED-NEXT: Name: (ID 1) [
|
|
|
|
TEST_EMBED-NEXT: Table Offset: 0x30
|
|
|
|
TEST_EMBED-NEXT: Number of String Entries: 0
|
|
|
|
TEST_EMBED-NEXT: Number of ID Entries: 1
|
|
|
|
TEST_EMBED-NEXT: Language: (ID 1033) [
|
|
|
|
TEST_EMBED-NEXT: Entry Offset: 0x48
|