Browse Source

add test (see #3414)

Simon Krajewski 10 years ago
parent
commit
61cefbbbb6
1 changed files with 9 additions and 0 deletions
  1. 9 0
      tests/unit/src/unit/issues/Issue3414.hx

+ 9 - 0
tests/unit/src/unit/issues/Issue3414.hx

@@ -0,0 +1,9 @@
+package unit.issues;
+
+class Issue3414 extends Test {
+	function test() {
+		var x = 200015;
+		eq(-1, ((((x << 28)) >> 28)));
+		eq(-1, (((x << 28) & 0xffffffff) >> 28));
+	}
+}