blob: 5aacf1a95b2192f257ba5f38d78bebf40ea0c365 [file] [log] [blame]
Chris Lattner285c68d2001-10-13 07:15:38 +00001
2%MyVar = global int 4
3%MyIntList = uninitialized global { \2 *, int }
4
5%AConst = constant int 123
6
Chris Lattnerb4b07c72001-11-26 19:17:06 +00007%Intern1 = internal constant int 52 ;; Intern in both testlink[12].ll
8%Intern2 = constant int 12345 ;; Intern in one but not in other
9
Chris Lattner230e5ef2001-10-15 03:11:58 +000010%MyIntListPtr = constant { {\2,int}* } { {\2,int}* %MyIntList }
11%MyVarPtr = global { int * } { int * %MyVar }
12
Chris Lattner784c52f2001-10-14 23:28:56 +000013constant int 412
14
Chris Lattner285c68d2001-10-13 07:15:38 +000015implementation
16
17int "foo"(int %blah)
18begin
19 store int %blah, int *%MyVar
Chris Lattnerf493a562001-12-14 16:46:53 +000020 store int 12, { \2 *, int } * %MyIntList, uint 0, ubyte 1
Chris Lattner784c52f2001-10-14 23:28:56 +000021
Chris Lattner230e5ef2001-10-15 03:11:58 +000022 %ack = load int * %0 ;; Load from the unnamed constant
23 %fzo = add int %ack, %blah
24 ret int %fzo
Chris Lattner285c68d2001-10-13 07:15:38 +000025end
26
Chris Lattner784c52f2001-10-14 23:28:56 +000027declare void "unimp"(float, double)
Chris Lattnerb4b07c72001-11-26 19:17:06 +000028
29internal void "testintern"() begin ret void end
30 void "Testintern"() begin ret void end
31internal void "testIntern"() begin ret void end
32