1 ; RUN: llvm-reduce --test FileCheck --test-arg --check-prefixes=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
2 ; RUN: cat %t | FileCheck --check-prefixes=CHECK-FINAL %s
4 ; Make sure we do not remove the terminator of the entry block. The interesting
5 ; check only requires the result to define the function @test.
7 ; Test case for PR43798.
9 ; CHECK-INTERESTINGNESS: define i32 @test
11 ; CHECK-FINAL: define i32 @test
12 ; CHECK-FINAL-NEXT: entry:
13 ; CHECK-FINAL-NEXT: ret i32
15 define i32 @test(i32 %x) {