Mercurial > projects > ldc
diff test/funcptr.d @ 102:027b8d8b71ec trunk
[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...
author | lindquist |
---|---|
date | Sun, 18 Nov 2007 06:52:57 +0100 |
parents | c53b6e3fe49a |
children | d9d5d59873d8 |
line wrap: on
line diff
--- a/test/funcptr.d Fri Nov 16 10:01:24 2007 +0100 +++ b/test/funcptr.d Sun Nov 18 06:52:57 2007 +0100 @@ -42,14 +42,14 @@ 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);