xref: /llvm-project/llvm/test/tools/llvm-reduce/remove-function-bodies.ll (revision 0bc5436ae892eaa6ee038f2d1ea26e02a72eed96)
1; RUN: llvm-reduce --test FileCheck --test-arg --check-prefixes=CHECK-ALL,CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
2; RUN: cat %t | FileCheck --check-prefixes=CHECK-ALL,CHECK-FINAL %s
3
4; CHECK-INTERESTINGNESS: @callee(
5; CHECK-FINAL: declare void @callee()
6define void @callee() {
7  ret void
8}
9
10; CHECK-ALL: define void @caller()
11define void @caller() {
12entry:
13; CHECK-ALL: call void @callee()
14; CHECK-ALL: ret void
15  call void @callee()
16  ret void
17}
18