mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
7feaf762f4
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189079 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
422 B
LLVM
21 lines
422 B
LLVM
; RUN: opt < %s -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
|
|
}
|
|
|