Michael Holman пре 8 година
родитељ
комит
e5890554ba
3 измењених фајлова са 18 додато и 0 уклоњено
  1. 2 0
      test/AsmJs/lambda.baseline
  2. 9 0
      test/AsmJs/lambda.js
  3. 7 0
      test/AsmJs/rlexe.xml

+ 2 - 0
test/AsmJs/lambda.baseline

@@ -0,0 +1,2 @@
+Lambda functions are not supported.
+Asm.js compilation failed.

+ 9 - 0
test/AsmJs/lambda.js

@@ -0,0 +1,9 @@
+//-------------------------------------------------------------------------------------------------------
+// Copyright (C) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
+//-------------------------------------------------------------------------------------------------------
+
+(function() {
+    "use asm";
+    m => 0;
+})();

+ 7 - 0
test/AsmJs/rlexe.xml

@@ -851,4 +851,11 @@
       <compile-flags>-testtrace:asmjs -maic:0</compile-flags>
     </default>
   </test>
+  <test>
+    <default>
+      <files>lambda.js</files>
+      <baseline>lambda.baseline</baseline>
+      <compile-flags>-testtrace:asmjs</compile-flags>
+    </default>
+  </test>
 </regress-exe>