blob: a894c3d2a3afd6684f730e7528f6a37b4772145a [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
Chris Lattneread19d52001-09-18 04:38:50 +000013[sbyte]* "other func"(int, double)
14begin
15 ret [sbyte]* %somestr
16end
17
Chris Lattner6b129362001-09-30 22:47:06 +000018[sbyte]* "yet another func"(int, double)
19begin
20 ret [sbyte]* null ; Test null
21end
22
23
Chris Lattneread19d52001-09-18 04:38:50 +000024[sbyte]* "again"(float)
25begin
26 %cast = cast [11x sbyte]* %somestr to [sbyte]*
27 ret [sbyte]* %cast
28end
Chris Lattner6b129362001-09-30 22:47:06 +000029