temporarily print signature of generated method to diagnose failing tests on core7i-5-ubuntu

This commit is contained in:
Stepan Koltsov
2011-11-25 16:11:32 +04:00
parent 992fabaf1f
commit 194bd73edd
@@ -35,6 +35,7 @@ public class VarArgTest extends CodegenTestCase {
loadText("fun test() = testf(239, 7); fun testf(vararg ts: Int) = ts");
// System.out.println(generateToText());
final Method main = generateFunction();
System.out.println(main.toString());
Object res = main.invoke(null);
assertTrue(((int[])res).length == 2);
assertTrue(((int[])res)[0] == 239);