mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-24 04:39:03 +02:00
[svn r106] Turns out the last commit wasn't enough, now the D->LLVM process is even more split up.
Basically it tries to do the following in order: Resolve types, Declare symbols, Create constant initializers, Apply initializers, Generate functions bodies. ClassInfo is now has the most useful(biased?) members working. Probably other stuf...
This commit is contained in:
@@ -42,14 +42,14 @@ void function_pointers()
|
||||
|
||||
binfn_t binfn = &add_int;
|
||||
assert(binfn(4,1045) == 1049);
|
||||
|
||||
|
||||
assert(binop_int(binfn, 10,656) == 666);
|
||||
|
||||
|
||||
binfn = get_binop_int('+');
|
||||
assert(binop_int(binfn, 10,100) == 110);
|
||||
binfn = get_binop_int('-');
|
||||
assert(binop_int(binfn, 10,100) == -90);
|
||||
|
||||
|
||||
{
|
||||
auto ffn = &mul_float;
|
||||
float ftmp = mul_float(2.5,5);
|
||||
|
||||
Reference in New Issue
Block a user