Explorar o código

[tests] fence tests that relies on the analyzer optimization

Simon Krajewski %!s(int64=6) %!d(string=hai) anos
pai
achega
b326cf4707
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      tests/unit/src/unit/TestSyntaxModule.hx

+ 2 - 0
tests/unit/src/unit/TestSyntaxModule.hx

@@ -23,6 +23,7 @@ class TestSyntaxModule extends Test {
 		eq(o.field, value);
 	}
 
+	#if analyzer_optimize
 	function testConstruct() {
 		var className:String =
 			#if php "\\unit\\_TestSyntaxModule\\Construct";
@@ -40,6 +41,7 @@ class TestSyntaxModule extends Test {
 		t(Std.is(b, Construct));
 		eq(10, b.value);
 	}
+	#end
 #end
 }