summaryrefslogtreecommitdiff
path: root/test/Feature/calltest.ll
blob: f478e500dfc181844fe246c165fb0cd6e8619c9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
implementation

; Bytecode gets a constant pool block, that constains:
; type   plane: int(int)

int "main"(int %argc)   ; TODO: , sbyte **argv, sbyte **envp)
begin
        %retval = call int (int) %test(int %argc)
        %two    = add int %retval, %retval
        ret int %two
end

int "test"(int %i0)
begin
    ret int %i0
end