[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / llvm / test / tools / llvm-reduce / reduce-linkage.ll
blob2784088d8b8e8e58bc9be6ba2d3ac6c059e273a4
1 ; Test that llvm-reduce can remove function linkage.
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: define
7 ; CHECK-INTERESTINGNESS-SAME: void @f
9 ; CHECK-FINAL: define void @f()
11 define void @f() {
12   ret void
15 ; CHECK-INTERESTINGNESS: define
16 ; CHECK-INTERESTINGNESS-SAME: void @g
18 ; CHECK-FINAL: define void @g()
20 define internal void @g() {
21   ret void