1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-31 07:52:55 +01:00
llvm-mirror/test/Transforms/GlobalOpt/undef-init.llx

19 lines
502 B
Plaintext
Raw Normal View History

; RUN: llvm-upgrade < %s | llvm-as | opt -globalopt | llvm-dis | not grep store
2004-10-16 20:28:01 +02:00
%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
}