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 10 RUN: llvm-cvtres /verbose /out:%t %p/Inputs/test_resource.res 11 RUN: llvm-readobj -symbols %t | FileCheck %s 12 13 // Test that parameters can be preceded by '-' in addition to '/': 14 RUN: llvm-cvtres -verbose -machine:X86 -out:%t %p/Inputs/test_resource.res 15 RUN: llvm-readobj -symbols %t | FileCheck %s 16 17 CHECK: Name: $R000000 18 CHECK-NEXT: Value: 0 19 CHECK-NEXT: Section: .rsrc$02 20 CHECK: Name: $R000001 21 CHECK-NEXT: Value: 24 22 CHECK-NEXT: Section: .rsrc$02 23 CHECK: Name: $R000002 24 CHECK-NEXT: Value: 832 25 CHECK-NEXT: Section: .rsrc$02 26 CHECK: Name: $R000003 27 CHECK-NEXT: Value: 1640 28 CHECK-NEXT: Section: .rsrc$02 29 CHECK: Name: $R000004 30 CHECK-NEXT: Value: 1688 31 CHECK-NEXT: Section: .rsrc$02 32 CHECK: Name: $R000006 33 CHECK-NEXT: Value: 1824 34 CHECK-NEXT: Section: .rsrc$02 35 CHECK: Name: $R000007 36 CHECK-NEXT: Value: 1872 37 CHECK-NEXT: Section: .rsrc$02 38