llvm-project/llvm/test/Transforms/GlobalOpt/basictest.llx

10 lines
157 B
Plaintext

; RUN: llvm-upgrade < %s | llvm-as | opt -globalopt | llvm-dis | not grep global
%X = internal global int 4
int %foo() {
%V = load int* %X
ret int %V
}