Mercurial > projects > dang
changeset 69:688b516408cd new_gen
Added 3 new small tests.
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Thu, 01 May 2008 19:26:22 +0200 |
parents | 381975d76baf |
children | 70a002b3fba4 |
files | tests/code/cast_1.d tests/code/cast_2.d tests/code/func_1.d |
diffstat | 3 files changed, 45 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/code/cast_1.d Thu May 01 19:26:22 2008 +0200 @@ -0,0 +1,12 @@ + +int main() +{ + byte y = 44; + + int b = cast(int)y * 66; + + if(b == 2904) + return 0; + else + return 1; +}