mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 07:56:07 +00:00

Or else if the test path contains "internal" the test will fail. The test is already testing that "internal" gets removed in the CHECK lines.
23 lines
581 B
LLVM
23 lines
581 B
LLVM
; Test that llvm-reduce can remove function linkage.
|
|
;
|
|
; 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
|
|
; RUN: FileCheck --check-prefix=CHECK-FINAL %s < %t
|
|
|
|
; CHECK-INTERESTINGNESS: define
|
|
; CHECK-INTERESTINGNESS-SAME: void @f
|
|
|
|
; CHECK-FINAL: define void @f()
|
|
|
|
define void @f() {
|
|
ret void
|
|
}
|
|
|
|
; CHECK-INTERESTINGNESS: define
|
|
; CHECK-INTERESTINGNESS-SAME: void @g
|
|
|
|
; CHECK-FINAL: define void @g()
|
|
|
|
define internal void @g() {
|
|
ret void
|
|
}
|