brintos

brintos / llvm-project-archived public Read only

0
0
Text · 874 B · bf3d2e2 Raw
20 lines · plain
1// Check that cvtres rejects duplicate resources.2// The input was generated with the following command, using the original Windows3// rc.exe:4// > rc /fo id.res /nologo id.rc5// > rc /fo name.res /nologo name.rc6 7RUN: rm -rf %t.dir8RUN: mkdir %t.dir9RUN: cp %S/Inputs/id.res %t.dir/id1.res10RUN: cp %S/Inputs/id.res %t.dir/id2.res11RUN: not llvm-cvtres /machine:X86 %t.dir/id1.res %t.dir/id2.res 2>&1 | \12RUN:     FileCheck -check-prefix=ID %s13ID: duplicate resource: type STRINGTABLE (ID 6)/name ID 3/language 1033, in {{.*}}id1.res and in {{.*}}id2.res14 15RUN: cp %S/Inputs/name.res %t.dir/name1.res16RUN: cp %S/Inputs/name.res %t.dir/name2.res17RUN: not llvm-cvtres /machine:X86 %t.dir/name1.res %t.dir/name2.res 2>&1 | \18RUN:     FileCheck -check-prefix=NAME %s19NAME: duplicate resource: type "TYPEFOO"/name "NAMEBAR"/language 1033, in {{.*}}name1.res and in {{.*}}name2.res20