1 ; Test if we detect duplicate names in a symbol table.
3 ; REQUIRES: no_minimal_build
5 ; RUN: not %pnacl_sz -bitcode-as-text -allow-externally-defined-symbols \
6 ; RUN: %p/Inputs/fcn-value-index-isnt-defined.tbc \
7 ; RUN: -bitcode-format=pnacl -notranslate -build-on-read 2>&1 \
10 ; CHECK: Value index {{.*}} not defined!
12 ; RUN: pnacl-bcfuzz -bitcode-as-text \
13 ; RUN: %p/Inputs/fcn-value-index-isnt-defined.tbc -output - \
14 ; RUN: | not pnacl-bcdis -no-records | FileCheck -check-prefix=ASM %s
16 ; ASM: module { // BlockID = 8
18 ; ASM: types { // BlockID = 17
25 ; ASM: define external i32 @f0();
26 ; ASM: globals { // BlockID = 19
29 ; ASM: valuesymtab { // BlockID = 14
32 ; ASM: function i32 @f0() { // BlockID = 12
34 ; ASM: constants { // BlockID = 11
39 ; ASM: %v0 = alloca i8, i32 %c0, align 4;
41 ; ASM: Error({{.*}}): Can't find type for %v1