xref: /llvm-project/llvm/test/tools/llvm-cvtres/symbols.test (revision e29e30b1397f3e50f3487491f8a77ae08e4e3471)
1// Check COFF emission of cvtres
2// The input was generated with the following command, using the original Windows
3// rc.exe:
4// > rc /fo test_resource.res /nologo test_resource.rc
5// The object file we are comparing against was generated with this command using
6// the original Windows cvtres.exe.
7// > cvtres /machine:X86 /readonly /nologo /out:test_resource.obj.coff \
8//   test_resource.res
9
10RUN: llvm-cvtres /verbose /out:%t %p/Inputs/test_resource.res
11RUN: llvm-readobj --symbols %t | FileCheck %s
12
13// Test that parameters can be preceded by '-' in addition to '/':
14RUN: llvm-cvtres -verbose -machine:X86 -out:%t %p/Inputs/test_resource.res
15RUN: llvm-readobj --symbols %t | FileCheck %s
16
17CHECK:        Name: $R000000
18CHECK-NEXT:    Value: 0
19CHECK-NEXT:    Section: .rsrc$02
20CHECK:        Name: $R000001
21CHECK-NEXT:    Value: 24
22CHECK-NEXT:    Section: .rsrc$02
23CHECK:        Name: $R000002
24CHECK-NEXT:    Value: 832
25CHECK-NEXT:    Section: .rsrc$02
26CHECK:        Name: $R000003
27CHECK-NEXT:    Value: 1640
28CHECK-NEXT:    Section: .rsrc$02
29CHECK:        Name: $R000004
30CHECK-NEXT:    Value: 1688
31CHECK-NEXT:    Section: .rsrc$02
32CHECK:        Name: $R000006
33CHECK-NEXT:    Value: 1824
34CHECK-NEXT:    Section: .rsrc$02
35CHECK:        Name: $R000007
36CHECK-NEXT:    Value: 1872
37CHECK-NEXT:    Section: .rsrc$02
38