38 lines · plain
1// Check COFF emission of cvtres2// The input was generated with the following command, using the original Windows3// rc.exe:4// > rc /fo test_resource.res /nologo test_resource.rc5// The object file we are comparing against was generated with this command using6// the original Windows cvtres.exe.7// > cvtres /machine:X86 /readonly /nologo /out:test_resource.obj.coff \8// test_resource.res9 10RUN: llvm-cvtres /verbose /out:%t %p/Inputs/test_resource.res11RUN: llvm-readobj --symbols %t | FileCheck %s12 13// Test that parameters can be preceded by '-' in addition to '/':14RUN: llvm-cvtres -verbose -machine:X86 -out:%t %p/Inputs/test_resource.res15RUN: llvm-readobj --symbols %t | FileCheck %s16 17CHECK: Name: $R00000018CHECK-NEXT: Value: 019CHECK-NEXT: Section: .rsrc$0220CHECK: Name: $R00000121CHECK-NEXT: Value: 2422CHECK-NEXT: Section: .rsrc$0223CHECK: Name: $R00000224CHECK-NEXT: Value: 83225CHECK-NEXT: Section: .rsrc$0226CHECK: Name: $R00000327CHECK-NEXT: Value: 164028CHECK-NEXT: Section: .rsrc$0229CHECK: Name: $R00000430CHECK-NEXT: Value: 168831CHECK-NEXT: Section: .rsrc$0232CHECK: Name: $R00000633CHECK-NEXT: Value: 182434CHECK-NEXT: Section: .rsrc$0235CHECK: Name: $R00000736CHECK-NEXT: Value: 187237CHECK-NEXT: Section: .rsrc$0238