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()
15 ; CHECK-INTERESTINGNESS: define
16 ; CHECK-INTERESTINGNESS-SAME: void @g
18 ; CHECK-FINAL: define void @g()
20 define internal void @g() {