[Issue 8765] assert should print the source code for the condition when no message argument present
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Oct 21 20:52:23 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8765
--- Comment #5 from Val Markovic <val at markovic.io> 2012-10-21 20:52:19 PDT ---
Same as bearophile; the following program
void main() {
assert(5 == 4);
}
gives me the following output:
core.exception.AssertError at test(2): Assertion failure
----------------
5 test 0x000000010d95b05a _d_assertm + 38
6 test 0x000000010d948df7 void
test.__assert(int) + 23
7 test 0x000000010d948dda _Dmain + 14
8 test 0x000000010d95b9ae extern (C) int
rt.dmain2.main(int, char**).void runMain() + 34
9 test 0x000000010d95b365 extern (C) int
rt.dmain2.main(int, char**).void tryExec(scope void delegate()) + 45
10 test 0x000000010d95b9f8 extern (C) int
rt.dmain2.main(int, char**).void runAll() + 56
11 test 0x000000010d95b365 extern (C) int
rt.dmain2.main(int, char**).void tryExec(scope void delegate()) + 45
12 test 0x000000010d95b2ef main + 235
13 libdyld.dylib 0x00007fff89dae7e1 start + 0
14 ??? 0x0000000000000001 0x0 + 1
----------------
My system/configuration is as follows:
OS: Mac OS X Mountain Lion 10.8
DMD64 v2.060
rdmd build 20120724
command: rdmd -unittest test.d
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list