summaryrefslogtreecommitdiffstats
path: root/test/Linker/testlink2.ll
blob: df8d85b38126773336bf7c9f3942cb411f9d97d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

%MyVar     = global int 4
%MyIntList = uninitialized global { \2 *, int }

%AConst    = constant int 123

constant int 412

implementation

int "foo"(int %blah)
begin
	store int %blah, int *%MyVar
	store int 12, { \2 *, int } * %MyIntList, ubyte 1

	;%ack = load int * %0   ;; Load from the unnamed constant
	;%fzo = add int %ack, %blah
	;ret int %fzo
	ret int %blah
end

declare void "unimp"(float, double)