mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
5540a2de5d
strip-nondebug and strip-debug-declare have no existing associated tests Reviewed By: ychen Differential Revision: https://reviews.llvm.org/D87639
22 lines
470 B
LLVM
22 lines
470 B
LLVM
; RUN: opt < %s -strip -S | FileCheck %s
|
|
; RUN: opt < %s -passes=strip -S | FileCheck %s
|
|
|
|
; CHECK: foo
|
|
; CHECK: bar
|
|
; CHECK: foo
|
|
; CHECK: bar
|
|
|
|
@llvm.used = appending global [2 x i8*] [ i8* bitcast (i32* @foo to i8*), i8* bitcast (i32 ()* @bar to i8*) ], section "llvm.metadata" ; <[2 x i8*]*> [#uses=0]
|
|
@foo = internal constant i32 41 ; <i32*> [#uses=1]
|
|
|
|
define internal i32 @bar() nounwind {
|
|
entry:
|
|
ret i32 42
|
|
}
|
|
|
|
define i32 @main() nounwind {
|
|
entry:
|
|
ret i32 0
|
|
}
|
|
|