Mercurial > projects > dstress
changeset 295:28dd23a1080b
inline / static
Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
2005-02-19
news:cv77ei$27mv$3@digitaldaemon.com
nntp://news.digitalmars.com/digitalmars.D.bugs/3017
author | thomask |
---|---|
date | Sat, 19 Feb 2005 11:23:31 +0000 |
parents | 38499bb7a5a2 |
children | 8123d177d3ca |
files | nocompile/inline_07.d nocompile/inline_08.d run/inline_09.d |
diffstat | 3 files changed, 67 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/inline_07.d Sat Feb 19 11:23:31 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn> +// @date@ 2005-02-19 +// @uri@ news:cv77ei$27mv$3@digitaldaemon.com +// @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/3017 + +// __DSTRESS_DFLAGS__ -inline + +module dstress.nocompile.inline_07; + +struct MyStruct{ + int bug() { + return 3; + } +} + +int main(){ + assert(MyStruct.bug()==3); + return 0; +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/inline_08.d Sat Feb 19 11:23:31 2005 +0000 @@ -0,0 +1,21 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn> +// @date@ 2005-02-19 +// @uri@ news:cv77ei$27mv$3@digitaldaemon.com +// @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/3017 + +module dstress.nocompile.inline_08; + +struct MyStruct{ + int bug() { + return 3; + } +} + +int main(){ + assert(MyStruct.bug()==3); + return 0; +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/inline_09.d Sat Feb 19 11:23:31 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn> +// @date@ 2005-02-19 +// @uri@ news:cv77ei$27mv$3@digitaldaemon.com +// @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/3017 + +// __DSTRESS_DFLAGS__ -inline + +module dstress.compile.inline_09; + +struct MyStruct{ + static int bug() { + return 3; + } +} + +int main(){ + assert(MyStruct.bug()==3); + return 0; +} \ No newline at end of file