Mercurial > projects > dstress
changeset 1303:b5c364b14660
[Issue 41] md5.d compilation error with enable checking
Brad Anderson <brad@dsource.org>
2006-03-12
http://d.puremagic.com/issues/show_bug.cgi?id=41
author | thomask |
---|---|
date | Sun, 31 Dec 2006 02:00:12 +0000 |
parents | ec017b93fe95 |
children | a720cd88e876 |
files | nocompile/p/pointer_03_A.d run/p/pointer_03_B.d run/p/pointer_03_C.d |
diffstat | 3 files changed, 54 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/p/pointer_03_A.d Sun Dec 31 02:00:12 2006 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Brad Anderson <brad@dsource.org> +// @date@ 2006-03-12 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=41 +// @desc@ [Issue 41] md5.d compilation error with enable checking + +module dstress.nocompile.p.pointer_03_A; + +int main(){ + byte[0] input; + void *b = &input[0]; + + return 0; +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/p/pointer_03_B.d Sun Dec 31 02:00:12 2006 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Brad Anderson <brad@dsource.org> +// @date@ 2006-03-12 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=41 +// @desc@ [Issue 41] md5.d compilation error with enable checking + +module dstress.run.p.pointer_03_B; + +int main(){ + byte[] input = new byte[1]; + void *b = &input[0]; + + return 0; +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/p/pointer_03_C.d Sun Dec 31 02:00:12 2006 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Brad Anderson <brad@dsource.org> +// @date@ 2006-03-12 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=41 +// @desc@ [Issue 41] md5.d compilation error with enable checking + +module dstress.run.p.pointer_03_C; + +int main(){ + byte[1] input; + void *b = &input[0]; + + return 0; +} +