1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test/tools/llvm-reduce/remove-unused-declarations.ll
Samuel 180f0bc045 [llvm-reduce] Move tests to tools folder
Move tests for llvm-reduce to tools folder

Reviewed By: fhahn, lebedev.ri

Differential Revision: https://reviews.llvm.org/D99632
2021-04-01 10:04:10 -07:00

22 lines
692 B
LLVM

; RUN: llvm-reduce --test FileCheck --test-arg --check-prefix=CHECK-ALL --test-arg %s --test-arg --input-file %s -o %t
; RUN: FileCheck --check-prefix=CHECK-ALL --implicit-check-not=uninteresting %s < %t
declare void @llvm.uninteresting()
declare void @uninteresting()
; CHECK-ALL: declare void @llvm.interesting()
; CHECK-ALL: declare void @interesting()
declare void @llvm.interesting()
declare void @interesting()
; CHECK-ALL: define void @main() {
; CHECK-ALL-NEXT: call void @llvm.interesting()
; CHECK-ALL-NEXT: call void @interesting()
; CHECK-ALL-NEXT: ret void
; CHECK-ALL-NEXT: }
define void @main() {
call void @llvm.interesting()
call void @interesting()
ret void
}