1 ; Test that llvm-reduce inserts valid return instructions for functions with
2 ; on-void return types.
4 ; RUN: llvm-reduce -abort-on-invalid-reduction --delta-passes=basic-blocks --test FileCheck --test-arg --check-prefixes=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
5 ; RUN: FileCheck %s < %t
7 ; CHECK-INTERESTINGNESS: interesting:
8 ; CHECK-INTERESTINGNESS: interesting2:
10 define i32 @main(i1 %c) {
11 ; CHECK-LABEL: define i32 @main(i1 %c) {
12 ; CHECK-LABEL: interesting:
13 ; CHECK-NEXT: br label %interesting2
15 ; CHECK-LABEL: interesting2:
16 ; CHECK-NEXT: ret i32 0
19 br label %interesting2
22 br i1 true, label %uninteresting1, label %uninteresting
25 br label %uninteresting1