1 ; Test if we detect if the value symbol table appears after a function block. 2 3 ; REQUIRES: no_minimal_build 4 5 ; RUN: not %pnacl_sz -bitcode-as-text %p/Inputs/symtab-after-fcn.tbc \ 6 ; RUN: -bitcode-format=pnacl -notranslate -build-on-read \ 7 ; RUN: -allow-externally-defined-symbols 2>&1 \ 8 ; RUN: | FileCheck %s 9 10 ; CHECK: Module valuesymtab not allowed after function blocks 11 12 ; RUN: pnacl-bcfuzz -bitcode-as-text %p/Inputs/symtab-after-fcn.tbc \ 13 ; RUN: -output - | not pnacl-bcdis -no-records \ 14 ; RUN: | FileCheck -check-prefix=ASM %s 15 16 ; ASM: module { // BlockID = 8 17 ; ASM: function void @f0() { // BlockID = 12 18 ; ASM: } 19 ; ASM: valuesymtab { // BlockID = 14 20 ; ASM: Error({{.*}}): Module symbol table must appear before function blocks 21 ; ASM: } 22 ; ASM: } 23