summaryrefslogtreecommitdiff
path: root/test/Analysis/DSGraph/constantize.ll
blob: c8d0ad8fc569a31686d8d41223c1933d62e02d43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; Make sure that the ds-opt pass is constantizing globals
;
; RUN: llvm-upgrade < %s | llvm-as | opt -ds-opt | llvm-dis | grep %G | grep constant


%G = internal global int 0		; <int*> [#uses=2]

implementation   ; Functions:

int %main() {
	%A = load int* %G
	ret int %A
}