aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/GlobalConstifier/basictest.llx
blob: 8305b8130a41426bd177054a882859eab53d80c4 (plain)
1
2
3
4
5
6
7
8
9
; RUN: llvm-as < %s | opt -constify | llvm-dis | not grep global

%X = internal global int 4


int %foo() {
	%V = load int* %X
	ret int %V
}