mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 23:29:20 +00:00
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17061 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4c554c589f
commit
6542a46e6f
18
test/Transforms/GlobalOpt/undef-init.llx
Normal file
18
test/Transforms/GlobalOpt/undef-init.llx
Normal file
@ -0,0 +1,18 @@
|
||||
; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep store
|
||||
|
||||
%llvm.global_ctors = appending global [1 x { int, void ()* }] [ { int, void ()* } { int 65535, void ()* %_GLOBAL__I__Z3foov } ] ; <[1 x { int, void ()* }]*> [#uses=0]
|
||||
%X.0 = internal global int undef ; <int*> [#uses=2]
|
||||
|
||||
implementation ; Functions:
|
||||
|
||||
int %_Z3foov() {
|
||||
entry:
|
||||
%tmp.1 = load int* %X.0 ; <int> [#uses=1]
|
||||
ret int %tmp.1
|
||||
}
|
||||
|
||||
internal void %_GLOBAL__I__Z3foov() {
|
||||
entry:
|
||||
store int 1, int* %X.0
|
||||
ret void
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user