diff tests/parser/shift_1.d @ 123:6a5f745d351c

Parsing <<, >> and >>>.
author Anders Johnsen <skabet@gmail.com>
date Sun, 25 May 2008 21:07:48 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/parser/shift_1.d	Sun May 25 21:07:48 2008 +0200
@@ -0,0 +1,12 @@
+
+
+int main()
+{
+    int x = 4;
+    int y = 2;
+
+    x = x << y;
+    x = x >> y;
+    x = x >>> y;
+    return x;
+}