1 ; Test if we detect duplicate names in a symbol table.
3 ; REQUIRES: no_minimal_build
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 \
9 ; CHECK: Module valuesymtab defines duplicate value name: 'f'
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
14 ; ASM: module { // BlockID = 8
16 ; ASM: types { // BlockID = 17
21 ; ASM: define external void @f0();
22 ; ASM: define external void @f1();
23 ; ASM: globals { // BlockID = 19
26 ; ASM: valuesymtab { // BlockID = 14
30 ; ASM: function void @f0() { // BlockID = 12
35 ; ASM: function void @f1() { // BlockID = 12