summaryrefslogtreecommitdiffstats
path: root/test/Transforms/FunctionAttrs/2008-12-29-Constant.ll
blob: d9c01171ac4086b4551328ff0e8c2fa982949049 (plain)
1
2
3
4
5
6
7
8
; RUN: llvm-as < %s | opt -functionattrs | llvm-dis | grep readnone

@s = external constant i8		; <i8*> [#uses=1]

define i8 @f() {
	%tmp = load i8* @s		; <i8> [#uses=1]
	ret i8 %tmp
}
OpenPOWER on IntegriCloud