1 ; Test if we detect duplicate names in a symbol table. 2 3 ; REQUIRES: no_minimal_build 4 5 ; RUN: not %pnacl_sz -bitcode-as-text %p/Inputs/duplicate-fcn-name.tbc \ 6 ; RUN: -bitcode-format=pnacl -notranslate -build-on-read 2>&1 \ 7 ; RUN: | FileCheck %s 8 9 ; CHECK: Module valuesymtab defines duplicate value name: 'f' 10 11 ; RUN: pnacl-bcfuzz -bitcode-as-text %p/Inputs/duplicate-fcn-name.tbc -output - \ 12 ; RUN: | pnacl-bcdis -no-records | FileCheck -check-prefix=ASM %s 13 14 ; ASM: module { // BlockID = 8 15 ; ASM: version 1; 16 ; ASM: types { // BlockID = 17 17 ; ASM: count 2; 18 ; ASM: @t0 = void; 19 ; ASM: @t1 = void (); 20 ; ASM: } 21 ; ASM: define external void @f0(); 22 ; ASM: define external void @f1(); 23 ; ASM: globals { // BlockID = 19 24 ; ASM: count 0; 25 ; ASM: } 26 ; ASM: valuesymtab { // BlockID = 14 27 ; ASM: @f0 : "f"; 28 ; ASM: @f1 : "f"; 29 ; ASM: } 30 ; ASM: function void @f0() { // BlockID = 12 31 ; ASM: blocks 1; 32 ; ASM: %b0: 33 ; ASM: ret void; 34 ; ASM: } 35 ; ASM: function void @f1() { // BlockID = 12 36 ; ASM: blocks 1; 37 ; ASM: %b0: 38 ; ASM: ret void; 39 ; ASM: } 40 ; ASM: } 41