3a0613c7efa3350339e9a155633eb918a5f64c3c
[oota-llvm.git] / test / Feature / testconstants.ll
1 %somestr = constant [sbyte] c"hello world"
2 %somestr = constant [11x sbyte] c"hello world"
3 %array   = constant [[2 x int]]  [ [2 x int] [ int 12, int 52 ] ]
4            constant { int, int } { int 4, int 3 }
5
6 implementation
7  
8 [[2 x int]]* "test function"(int %i0, int %j0)
9 begin
10         ret [[2x int]]* %array
11 end
12
13
14 [sbyte]* "other func"(int, double)
15 begin
16         ret [sbyte]* %somestr
17 end
18
19 [sbyte]* "again"(float)
20 begin
21         %cast = cast [11x sbyte]* %somestr to [sbyte]*
22         ret [sbyte]* %cast
23 end