[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / tools / llvm-reduce / remove-dso-local.ll
blobdd9398bd9e434ae43f978ca46dfbcf2e95398f1f
1 ; Test that llvm-reduce can remove dso_local.
3 ; RUN: llvm-reduce --abort-on-invalid-reduction --delta-passes=global-values --test FileCheck --test-arg --check-prefixes=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
4 ; RUN: FileCheck --check-prefix=CHECK-FINAL %s < %t
6 ; CHECK-INTERESTINGNESS: declare
7 ; CHECK-INTERESTINGNESS-SAME: void @f0
8 ; CHECK-INTERESTINGNESS-SAME: i32
9 ; CHECK-INTERESTINGNESS-SAME: i32
11 ; CHECK-FINAL: declare void @f0(i32, i32)
13 declare dso_local void @f0(i32, i32)
15 ; CHECK-INTERESTINGNESS: declare
16 ; CHECK-INTERESTINGNESS-SAME: dso_local
17 ; CHECK-INTERESTINGNESS-SAME: void @f1
18 ; CHECK-INTERESTINGNESS-SAME: i32
19 ; CHECK-INTERESTINGNESS-SAME: i32
21 ; CHECK-FINAL: declare dso_local void @f1(i32, i32)
23 declare dso_local void @f1(i32, i32)
25 ; CHECK-INTERESTINGNESS: define {{.*}} @f2
26 define private void @f2(i32, i32) {
27   ret void