Testing generated/osx/debug/unittest/std/bigint
6543a5a6edcba987
[email protected](483): unittest failure
----------------
5   bigint                              0x0000a908 onAssertErrorMsg + 68
6   bigint                              0x0000a94a onUnittestErrorMsg + 26
7   bigint                              0x00011f89 _d_unittestm + 45
8   bigint                              0x00001ec3 void std.bigint.__unittest_fa
il(int) + 35
9   bigint                              0x0000272d void std.bigint.__unittest1()
 + 833
10  bigint                              0x00001e4b void std.bigint.__modtest() +
 11
11  bigint                              0x0000ad15 extern (C) bool core.runtime.
runModuleUnitTests() + 45
12  bigint                              0x00005b37 D6object10ModuleInfo7opApplyF
MDFKPS6object10ModuleInfoZiZi + 71
13  bigint                              0x0000ac06 runModuleUnitTests + 134
14  bigint                              0x000122f2 extern (C) int rt.dmain2.main
(int, char**) + 38
15  bigint                              0x000121f6 extern (C) int rt.dmain2.main
(int, char**) + 42
16  bigint                              0x00012183 main + 179
17  bigint                              0x00001e2d start + 53
make[2]: *** [generated/osx/debug/unittest/std/bigint] Error 1
make[1]: *** [unittest] Error 2
make: *** [unittest] Error 2


Don Clugston wrote:
On 25 October 2010 09:45, Walter Bright <[email protected]> wrote:
  
dsource.org wrote:
    
phobos commit, revision 2116


user: Don Clugston

msg:
Fix for BigInt assign for 64 bit compilers. Also a few steps towards const
correctness, and some comment fixes.

http://www.dsource.org/projects/phobos/changeset/2116


      
Still dies (OSX only):

[email protected](481): unittest failure

    

Please add this line at 481, and tell me what it prints.

    assert(BigInt(0x1234_5678_9ABC_5A5AL).ulongLength == 1);
+    printf("%Lx%Lx\n", BigInt(0x1234_5678_9ABC_5A5AL).data.peekUlong(0));
    assert(BigInt(0x1234_5678_9ABC_5A5AL).toLong() == 0x1234_5678_9ABC_5A5AL);

obviously adding
import core.stdc.stdio;

It's looking to me as though have a long-related codegen bug.
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos


  
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos

Reply via email to