[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / COFF / resource.test
blob77b7bdb2951791451067a8c224c1f67ed86c5b46
1 # RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj
2 # RUN: lld-link /out:%t.exe /entry:main %t.obj %p/Inputs/resource.res
4 # Check if the binary contains UTF-16LE string "Hello" copied from resource.res.
5 # RUN: FileCheck --check-prefix=EXE %s < %t.exe
7 EXE: {{H.e.l.l.o}}
9 # Verify the resource tree layout in the final executable.
10 # RUN: llvm-readobj --file-headers --coff-resources --section-data %t.exe | \
11 # RUN:   FileCheck --check-prefix=RESOURCE_INFO %s
13 RESOURCE_INFO:      ResourceTableRVA: 0x2000
14 RESOURCE_INFO-NEXT: ResourceTableSize: 0x90
15 RESOURCE_INFO-DAG:  Resources [
16 RESOURCE_INFO-NEXT:   Total Number of Resources: 1
17 RESOURCE_INFO-NEXT:   Base Table Address: 0x600
18 RESOURCE_INFO-DAG:    Number of String Entries: 0
19 RESOURCE_INFO-NEXT:   Number of ID Entries: 1
20 RESOURCE_INFO-NEXT:   Type: STRINGTABLE (ID 6) [
21 RESOURCE_INFO-NEXT:     Table Offset: 0x18
22 RESOURCE_INFO-NEXT:     Number of String Entries: 0
23 RESOURCE_INFO-NEXT:     Number of ID Entries: 1
24 RESOURCE_INFO-NEXT:     Name: (ID 1) [
25 RESOURCE_INFO-NEXT:       Table Offset: 0x30
26 RESOURCE_INFO-NEXT:       Number of String Entries: 0
27 RESOURCE_INFO-NEXT:       Number of ID Entries: 1
28 RESOURCE_INFO-NEXT:       Language: (ID 1033) [
29 RESOURCE_INFO-NEXT:         Entry Offset: 0x48
30 RESOURCE_INFO-NEXT:         Time/Date Stamp: 1970-01-01 00:00:00 (0x0)
31 RESOURCE_INFO-NEXT:         Major Version: 0
32 RESOURCE_INFO-NEXT:         Minor Version: 0
33 RESOURCE_INFO-NEXT:         Characteristics: 0
34 RESOURCE_INFO-DAG: .rsrc Data (
35 RESOURCE_INFO-NEXT: 0000: 00000000 00000000 00000000 00000100  |................|
36 RESOURCE_INFO-NEXT: 0010: 06000000 18000080 00000000 00000000  |................|
37 RESOURCE_INFO-NEXT: 0020: 00000000 00000100 01000000 30000080  |............0...|
38 RESOURCE_INFO-NEXT: 0030: 00000000 00000000 00000000 00000100  |................|
39 RESOURCE_INFO-NEXT: 0040: 09040000 48000000 60200000 2A000000  |....H...` ..*...|
40 RESOURCE_INFO-NEXT: 0050: 00000000 00000000 00000000 00000000  |................|
41 RESOURCE_INFO-NEXT: 0060: 00000500 48006500 6C006C00 6F000000  |....H.e.l.l.o...|
42 RESOURCE_INFO-NEXT: 0070: 00000000 00000000 00000000 00000000  |................|
43 RESOURCE_INFO-NEXT: 0080: 00000000 00000000 00000000 00000000  |................|
44 RESOURCE_INFO-NEXT: )