aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/tools/llvm-reduce/remove-single-arg.ll
blob: 402e754e56bcce7a660dad257ee9fc590b659507 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: llvm-reduce --abort-on-invalid-reduction --delta-passes=arguments --test FileCheck --test-arg --check-prefixes=CHECK-ALL,CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
; RUN: cat %t | FileCheck --check-prefixes=CHECK-ALL,CHECK-FINAL %s

define i32 @t(i32 %a0) {
; CHECK-ALL-LABEL: @t
; CHECK-FINAL: () {
;
; CHECK-INTERESTINGNESS: ret i32
; CHECK-FINAL: ret i32 42

  ret i32 42
}