brintos

brintos / llvm-project-archived public Read only

0
0
Text · 630 B · 1d63b76 Raw
18 lines · plain
1; RUN: llvm-as -o %t %s2; RUN: llvm-modextract -n 0 -o - %t | llvm-dis | FileCheck %s3; RUN: not llvm-modextract -n 1 -o - %t 2>&1 | FileCheck --check-prefix=ERROR %s4; RUN: llvm-modextract -b -n 0 -o - %t | llvm-dis | FileCheck %s5; RUN: not llvm-modextract -b -n 1 -o - %t 2>&1 | FileCheck --check-prefix=ERROR %s6 7; RUN: llvm-modextract -n 0 -o %t0 %t8; RUN: llvm-dis -o - %t0 | FileCheck %s9; RUN: llvm-modextract -b -n 0 -o %t1 %t10; RUN: llvm-dis -o - %t1 | FileCheck %s11 12; CHECK: define void @f()13; ERROR: llvm-modextract: error: module index out of range; bitcode file contains 1 module(s)14 15define void @f() {16  ret void17}18