diff tests/code/cast_2.d @ 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
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/code/cast_2.d	Thu May 01 19:26:22 2008 +0200
@@ -0,0 +1,14 @@
+
+
+
+int main()
+{
+    byte y = 44;
+
+    int b = y * cast(byte)66;
+
+    if(b == 88)
+        return 0;
+    else
+        return 1;
+}