ソースを参照

Added test for #4218.

Andy Li 10 年 前
コミット
11bb42c50b

+ 1 - 0
tests/misc/projects/Issue4218/.gitignore

@@ -0,0 +1 @@
+*.py

+ 12 - 0
tests/misc/projects/Issue4218/Main.hx

@@ -0,0 +1,12 @@
+// This is in fact DCE related, so it should be compiled seperately...
+class Main {
+	static function main() {
+		var i = 2;
+		i >>>= 1;
+		if (i != 1)
+			throw "i != 1";
+
+		if (StringTools.hex(1, 6) != "000001")
+			throw 'StringTools.hex(1, 6) != "000001"';
+	}
+}

+ 3 - 0
tests/misc/projects/Issue4218/build.hxml

@@ -0,0 +1,3 @@
+-python Test.py
+-main Main
+-cmd python3 Test.py