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 3 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. 6 7; Test case for PR43798. 8 9; CHECK-INTERESTINGNESS: define i32 @test 10 11; CHECK-FINAL: define i32 @test 12; CHECK-FINAL-NEXT: entry: 13; CHECK-FINAL-NEXT: ret i32 14 15define i32 @test(i32 %x) { 16entry: 17 %add = add i32 %x, %x 18 ret i32 %add 19} 20