diff tests/code/switch_4.d @ 38:52eb0eb92e91 new_gen

Testcases for switch
author Anders Halager <halager@gmail.com>
date Sun, 20 Apr 2008 23:53:42 +0200
parents
children 2c5a8061aa4a
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/code/switch_4.d	Sun Apr 20 23:53:42 2008 +0200
@@ -0,0 +1,16 @@
+
+int main(int x)
+{
+    switch (x)
+    {
+        case 1, 2:
+            x = 2;
+            return x;
+        case 3, 4:
+            x = 1;
+            return x;
+        default:
+            return 0;
+    }
+}
+