| ; Test if we detect duplicate names in a symbol table. |
| ; REQUIRES: no_minimal_build |
| ; RUN: not %pnacl_sz -bitcode-as-text %p/Inputs/duplicate-fcn-name.tbc \ |
| ; RUN: -bitcode-format=pnacl -notranslate -no-ir-gen -build-on-read 2>&1 \ |
| ; CHECK: Module valuesymtab defines duplicate value name: 'f' |
| ; RUN: pnacl-bcfuzz -bitcode-as-text %p/Inputs/duplicate-fcn-name.tbc -output - \ |
| ; RUN: | pnacl-bcdis -no-records | FileCheck -check-prefix=ASM %s |
| ; ASM: module { // BlockID = 8 |
| ; ASM: types { // BlockID = 17 |
| ; ASM: define external void @f0(); |
| ; ASM: define external void @f1(); |
| ; ASM: globals { // BlockID = 19 |
| ; ASM: valuesymtab { // BlockID = 14 |
| ; ASM: function void @f0() { // BlockID = 12 |
| ; ASM: function void @f1() { // BlockID = 12 |