blob: 3a0613c7efa3350339e9a155633eb918a5f64c3c [file] [log] [blame]
Chris Lattneread19d52001-09-18 04:38:50 +00001%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
6implementation
7
8[[2 x int]]* "test function"(int %i0, int %j0)
9begin
10 ret [[2x int]]* %array
11end
12
13
14[sbyte]* "other func"(int, double)
15begin
16 ret [sbyte]* %somestr
17end
18
19[sbyte]* "again"(float)
20begin
21 %cast = cast [11x sbyte]* %somestr to [sbyte]*
22 ret [sbyte]* %cast
23end