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; We can't drop arguments if they are used by terminator instructions.
5
6define i32 @t(i32 %a0, i32 %a1, i32 %a2) {
7; CHECK-ALL-LABEL: @t
8; CHECK-FINAL-NOT: %a1
9;
10; CHECK-INTERESTINGNESS: ret i32
11; CHECK-FINAL: ret i32 undef
12
13  ret i32 %a1
14}
15