Initial checkin
[oota-llvm.git] / test / Feature / testconstants.ll
1 %somestr = constant [11x sbyte] c"hello world"
2 %array   = constant [2 x int] [ int 12, int 52 ]
3            constant { int, int } { int 4, int 3 }
4
5 implementation
6  
7 [2 x int]* %testfunction(int %i0, int %j0)
8 begin
9         ret [2x int]* %array
10 end
11
12 sbyte* %otherfunc(int, double)
13 begin
14         %somestr = getelementptr [11x sbyte]* %somestr, long 0, long 0
15         ret sbyte* %somestr
16 end
17
18 sbyte* %yetanotherfunc(int, double)
19 begin
20         ret sbyte* null            ; Test null
21 end
22