mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
be2d4e77b5
will not be deleted, rather than the ones that will. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114614 91177308-0d34-0410-b5e6-96231b3b80d8
23 lines
615 B
LLVM
23 lines
615 B
LLVM
; RUN: llvm-extract -func foo -S < %s | FileCheck %s
|
|
; RUN: llvm-extract -delete -func foo -S < %s | FileCheck --check-prefix=DELETE %s
|
|
; RUN: llvm-as < %s > %t
|
|
; RUN: llvm-extract -func foo -S %t | FileCheck %s
|
|
; RUN: llvm-extract -delete -func foo -S %t | FileCheck --check-prefix=DELETE %s
|
|
|
|
; llvm-extract uses lazy bitcode loading, so make sure it correctly reads
|
|
; from bitcode files in addition to assembly files.
|
|
|
|
; CHECK: define void @foo() {
|
|
; CHECK: ret void
|
|
; CHECK: }
|
|
; DELETE: define void @bar() {
|
|
; DELETE: ret void
|
|
; DELETE: }
|
|
|
|
define void @foo() {
|
|
ret void
|
|
}
|
|
define void @bar() {
|
|
ret void
|
|
}
|