1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02:00
llvm-mirror/test/tools/llvm-modextract/single.ll
2016-12-01 23:13:11 +00:00

18 lines
630 B
LLVM

; RUN: llvm-as -o %t %s
; RUN: llvm-modextract -n 0 -o - %t | llvm-dis | FileCheck %s
; RUN: not llvm-modextract -n 1 -o - %t 2>&1 | FileCheck --check-prefix=ERROR %s
; RUN: llvm-modextract -b -n 0 -o - %t | llvm-dis | FileCheck %s
; RUN: not llvm-modextract -b -n 1 -o - %t 2>&1 | FileCheck --check-prefix=ERROR %s
; RUN: llvm-modextract -n 0 -o %t0 %t
; RUN: llvm-dis -o - %t0 | FileCheck %s
; RUN: llvm-modextract -b -n 0 -o %t1 %t
; RUN: llvm-dis -o - %t1 | FileCheck %s
; CHECK: define void @f()
; ERROR: llvm-modextract: error: module index out of range; bitcode file contains 1 module(s)
define void @f() {
ret void
}