# HG changeset patch # User thomask # Date 1099083892 0 # Node ID 91feffeeafa64ce879855ec05d9ad9564187e40a # Parent 6a56a7866943b1de3299ea792bab4708ac33e3ec used the new ?DSTRESS_FLAGS? support to 1) simpilfy some complex tests 2) extend command_line_debug and command_line_version tests diff -r 6a56a7866943 -r 91feffeeafa6 compile/unittest_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/unittest_02.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,15 @@ +// @author@ Ant +// @date@ 2004-10-29 +// @uri@ news://cls8bk$16j5$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2157 + +// §DSTRESS_FLAGS§ -c -g + +module dstress.compile.unittest_02; + +class A{ + unittest + { + } +} + diff -r 6a56a7866943 -r 91feffeeafa6 complex/command_line/complex.mak --- a/complex/command_line/complex.mak Fri Oct 29 21:01:42 2004 +0000 +++ b/complex/command_line/complex.mak Fri Oct 29 21:04:52 2004 +0000 @@ -15,7 +15,11 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # - + +# +# NOTE: almost all tests can be written using §DSTRESS_FLAGS§ +# + .PHONY: \ complex/command_line/warning \ complex/command_line/$(complex_done) \ @@ -25,20 +29,11 @@ @echo "don't invoke this file directly, instead use DStress' root Makefile with the target \"complex/command_line/complex.done\", \"complex\" or \"all\"" # -# name__command__line__arguments.cmdrun -# name__command__line__arguments.cmdfail # name__command__line__arguments.cmdnullfail # # all double underscores in the arguments will be replaced by whitespace # complex/command_line/raw = \ - complex/command_line/command_line_debug_01__-debug__-od$(OBJ_DIR)__-of$(OBJ_DIR)/dummy.xxx.cmdrun \ - complex/command_line/command_line_debug_02__-debug=1__-od$(OBJ_DIR)__-of$(OBJ_DIR)/dummy.xxx.cmdrun \ - complex/command_line/command_line_debug_03__-debug=abc__-od$(OBJ_DIR)__-of$(OBJ_DIR)/dummy.xxx.cmdrun \ - complex/command_line/command_line_debug_04__-debug=123456789__-od$(OBJ_DIR)__-of$(OBJ_DIR)/dummy.xxx.cmdrun \ - complex/command_line/command_line_debug_05__-debug=1A__-od$(OBJ_DIR)__-of$(OBJ_DIR)/dummy.xxx.cmdfail \ - complex/command_line/command_line_debug_06__-debug123__-od$(OBJ_DIR)__-of$(OBJ_DIR)/dummy.xxx.cmdfail \ - complex/command_line/command_line_debug_07__-debugABC__-od$(OBJ_DIR)__-of$(OBJ_DIR)/dummy.xxx.cmdfail \ complex/command_line/command_line_null_source_01__-c.cmdnullfail \ complex/command_line/command_line_null_source_02__.cmdnullfail \ complex/command_line/command_line_null_source_03__-c__"".cmdnullfail \ @@ -50,28 +45,6 @@ complex/command_line/$(complex_done) : $(complex/command_line/raw) # -# try running with "dummy.d" as the source -# (should succeed) -# -%.cmdrun : complex/command_line/dummy.$(ext_source) basic_tools - $(eval z_raw = $(subst __, ,$*)) - $(eval z_name = $(word 1,$(z_raw))) - $(eval z_arg = $(subst $(z_name),,$(z_raw))) - $(eval z_return = $(shell $(return__) "$(DMD) $(z_arg) complex/command_line/dummy.$(ext_source) $(to_log)")) - $(analyse_compile) - -# -# try running with "dummy.d" as the source -# (should fail) -# -%.cmdfail : complex/command_line/dummy.$(ext_source) basic_tools - $(eval z_raw = $(subst __, ,$*)) - $(eval z_name = $(word 1,$(z_raw))) - $(eval z_arg = $(subst $(z_name),,$(z_raw))) - $(eval z_return = $(shell $(return__) "$(DMD) $(z_arg) complex/command_line/dummy.$(ext_source) $(to_log)")) - $(analyse_nocompile) - -# # try running without any additional source agruments # (should fail) # @@ -87,5 +60,5 @@ # this will be called by root's "clean" target complex/command_line/clean : - $(RM) complex/command_line/*.done complex/command_line/*.xxxx complex/command_line/*.$(ext_compile) complex/command_line/.?*$(ext_compile) complex/command_line/?*.cmdnullfail complex/command_line/a.out + $(RM) complex/command_line/*.done complex/command_line/*.$(dest_compile) complex/command_line/*.cmdnullfail complex/command_line/a.out diff -r 6a56a7866943 -r 91feffeeafa6 complex/debug/complex.mak --- a/complex/debug/complex.mak Fri Oct 29 21:01:42 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +0,0 @@ -# GnuMakefile for DStress http://dmd.kuehne.cn/dstress.html -# Copyright (C) 2004 Thomas Kuehne -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# - -.PHONY: \ - complex/debug/warning \ - complex/debug/$(complex_done) \ - complex/debug/clean - -complex/debug/warning : - @echo "don't invoke this file directly, instead use DStress' root Makefile with the target \"complex/debug/complex.done\" \"complex\" or \"all\"" - -# this will be called by root's "all" / "complex" target -complex/debug/$(complex_done) : complex/debug/debug_01.$(ext_run) complex/debug/debug_02.$(ext_run) complex/debug/debug_03.$(ext_run) - -complex/debug/debug_01.$(ext_run) : complex/debug/debug_01.$(ext_source) basic_tools - $(eval z_name = $(subst .$(ext_run),,$@)) - $(eval z_return = $(shell $(return__) "$(DMD) $(DFLAGS) -debug -od$(OBJ_DIR) -of$@ $< $(to_log)")) - $(analyse_run) - -complex/debug/debug_02.$(ext_run) : complex/debug/debug_02.$(ext_source) basic_tools - $(eval z_name = $(subst .$(ext_run),,$@)) - $(eval z_return = $(shell $(return__) "$(DMD) $(DFLAGS) -debug=2 -od$(OBJ_DIR) -of$@ $< $(to_log)")) - $(analyse_run) - -complex/debug/debug_03.$(ext_run) : complex/debug/debug_03.$(ext_source) basic_tools - $(eval z_name = $(subst .$(ext_run),,$@)) - $(eval z_return = $(shell $(return__) "$(DMD) $(DFLAGS) -debug=a -od$(OBJ_DIR) -of$@ $< $(to_log)")) - $(analyse_run) - - -# this will be called by root's "clean" target -complex/debug/clean : - $(RM) complex/debug/$(complex_done) complex/debug/?*.$(ext_run) complex/debug/?*.$(ext_compile) complex/debug/?*.$(ext_nocompile) diff -r 6a56a7866943 -r 91feffeeafa6 complex/debug/debug_01.d --- a/complex/debug/debug_01.d Fri Oct 29 21:01:42 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -int main(){ - int x; - assert(x==0); - debug{ - x++; - } - assert(x==1); - return 0; -} diff -r 6a56a7866943 -r 91feffeeafa6 complex/debug/debug_02.d --- a/complex/debug/debug_02.d Fri Oct 29 21:01:42 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -// @author@ Thomas Kuehne -// @date@ 2004-10-16 -// @uri@ news://ckro4i$1b4l$2@digitaldaemon.com -// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2119 - -module dstress.complex.debug_.debug_02; - -int main(){ - int i=0; - assert(i==0); - debug(1){ - assert(0); - } - debug(2){ - i++; - assert(i==1); - } - debug(3){ - i++; - assert(i==2); - } - assert(i==2); - return 0; -} diff -r 6a56a7866943 -r 91feffeeafa6 complex/debug/debug_03.d --- a/complex/debug/debug_03.d Fri Oct 29 21:01:42 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -int main(){ - int i; - assert(i==0); - debug(a){ - i++; - assert(i==1); - } - debug(b){ - i++; - assert(0); - } - assert(i==1); - return 0; -} - diff -r 6a56a7866943 -r 91feffeeafa6 complex/unittest/complex.mak --- a/complex/unittest/complex.mak Fri Oct 29 21:01:42 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,59 +0,0 @@ -# GnuMakefile for DStress http://dmd.kuehne.cn/dstress.html -# Copyright (C) 2004 Thomas Kuehne -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# - -.PHONY: \ - complex/unittest/warning \ - complex/unittest/$(complex_done) \ - complex/unittest/run \ - complex/unittest/nocompile \ - complex/unittest/clean - -complex/unittest/warning : - @echo "don't invoke this file directly, instead use DStress' root Makefile with the target \"complex/unittest/complex.done\", \"complex\" or \"all\"" - -ext_unittest_run = unittest.$(ext_run) -ext_unittest_nocompile = unittest.$(ext_nocompile) - -# this will be called by root's "all" / "complex" target -complex/unittest/$(complex_done) : complex/unittest/run complex/unittest/nocompile - -complex/unittest/run : $(sort $(subst .$(ext_source),.$(ext_unittest_run),$(shell $(FIND) complex/unittest/run -regex ".*\\.$(ext_source)" ))) - -complex/unittest/nocompile : $(sort $(subst .$(ext_source),.$(ext_unittest_nocompile),$(shell $(FIND) complex/unittest/nocompile -regex ".*\\.$(ext_source)" ))) - -# -# target should fail to compile -# -%.$(ext_unittest_nocompile) : %.$(ext_source) basic_tools - $(eval z_name = $(subst .$(ext_unittest_nocompile),,$@)) - $(eval z_return = $(shell $(return__) "$(DMD) -unittest $(DFLAGS) -c -of$@ $< $(to_log)")) - $(analyse_nocompile) - -# -# target should compile, link and run -# -%.$(ext_unittest_run) : %.$(ext_source) basic_tools - $(eval z_name = $(subst .$(ext_unittest_run),,$@)) - $(eval z_return = $(shell $(return__) "$(DMD) $(DFLAGS) -unittest -od$(OBJ_DIR) -of$@ $< $(to_log)")) - $(analyse_run) - - -# this will be called by root's "clean" target -complex/unittest/clean : - $(RM) complex/unittest/$(complex_done) complex/unittest/run/*.$(ext_unittest_run) complex/unittest/nocompile/?*.$(ext_nocompile) - diff -r 6a56a7866943 -r 91feffeeafa6 complex/unittest/run/unittest_01.d --- a/complex/unittest/run/unittest_01.d Fri Oct 29 21:01:42 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -int status; - -int main(){ - assert(status==1); - return 0; -} - -unittest{ - status++; -} diff -r 6a56a7866943 -r 91feffeeafa6 nocompile/command_line_debug_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/command_line_debug_05.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,7 @@ +// §DSTRESS_FLAGS§ -debug=1A + +module stress.run.command_line_debug_05; + +int main(){ + return 0; +} diff -r 6a56a7866943 -r 91feffeeafa6 nocompile/command_line_debug_06.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/command_line_debug_06.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,7 @@ +// §DSTRESS_FLAGS§ -debug123 + +module stress.run.command_line_debug_06; + +int main(){ + return 0; +} diff -r 6a56a7866943 -r 91feffeeafa6 nocompile/command_line_debug_07.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/command_line_debug_07.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,7 @@ +// §DSTRESS_FLAGS§ -debugabc + +module stress.run.command_line_debug_06; + +int main(){ + return 0; +} diff -r 6a56a7866943 -r 91feffeeafa6 nocompile/command_line_debug_09.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/command_line_debug_09.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,7 @@ +// §DSTRESS_FLAGS§ -debug= + +module dstress.nocompile.command_line_debug_09; + +int main(){ + return 0; +} diff -r 6a56a7866943 -r 91feffeeafa6 nocompile/command_line_version_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/command_line_version_04.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,7 @@ +// §DSTRESS_DFLAGS§ -version + +module dstress.nocompile.command_line_version_04; + +int main(){ + return 0; +} diff -r 6a56a7866943 -r 91feffeeafa6 nocompile/command_line_version_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/command_line_version_05.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,7 @@ +// §DSTRESS_DFLAGS§ -version=1A + +module dstress.nocompile.command_line_version_05; + +int main(){ + return 0; +} diff -r 6a56a7866943 -r 91feffeeafa6 nocompile/command_line_version_06.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/command_line_version_06.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,7 @@ +// §DSTRESS_DFLAGS§ -version123 + +module dstress.nocompile.command_line_version_06; + +int main(){ + return 0; +} diff -r 6a56a7866943 -r 91feffeeafa6 nocompile/command_line_version_07.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/command_line_version_07.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,7 @@ +// §DSTRESS_DFLAGS§ -versionabc + +module dstress.nocompile.command_line_version_07; + +int main(){ + return 0; +} diff -r 6a56a7866943 -r 91feffeeafa6 nocompile/command_line_version_08.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/command_line_version_08.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,7 @@ +// §DSTRESS_DFLAGS§ -version=X86 -version=AMD64 + +module dstress.nocompile.command_line_version_08; + +int main(){ + return 0; +} diff -r 6a56a7866943 -r 91feffeeafa6 nocompile/command_line_version_09.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/command_line_version_09.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,7 @@ +// §DSTRESS_DFLAGS§ -version=linux -version=Windows + +module dstress.nocompile.command_line_version_09; + +int main(){ + return 0; +} diff -r 6a56a7866943 -r 91feffeeafa6 nocompile/command_line_version_10.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/command_line_version_10.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,7 @@ +// §DSTRESS_DFLAGS§ -version=none + +module dstress.nocompile.command_line_version_10; + +int main(){ + return 0; +} diff -r 6a56a7866943 -r 91feffeeafa6 nocompile/command_line_version_11.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/command_line_version_11.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,7 @@ +// §DSTRESS_DFLAGS§ -version=Win32 -version=Win64 + +module dstress.nocompile.command_line_version_11; + +int main(){ + return 0; +} diff -r 6a56a7866943 -r 91feffeeafa6 nocompile/command_line_version_12.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/command_line_version_12.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,7 @@ +// §DSTRESS_DFLAGS§ -version=Win32 -version=linux + +module dstress.nocompile.command_line_version_12; + +int main(){ + return 0; +} diff -r 6a56a7866943 -r 91feffeeafa6 nocompile/command_line_version_13.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/command_line_version_13.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,7 @@ +// §DSTRESS_DFLAGS§ -version=Win64 -version=linux + +module dstress.nocompile.command_line_version_13; + +int main(){ + return 0; +} diff -r 6a56a7866943 -r 91feffeeafa6 nocompile/command_line_version_14.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/command_line_version_14.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,7 @@ +// §DSTRESS_DFLAGS§ -version=LittleEndian -version=BigEndian + +module dstress.nocompile.command_line_version_14; + +int main(){ + return 0; +} diff -r 6a56a7866943 -r 91feffeeafa6 nocompile/command_line_version_15.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/command_line_version_15.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,7 @@ +// §DSTRESS_DFLAGS§ -version=D_InlineAsm + +module dstress.nocompile.command_line_version_15; + +int main(){ + return 0; +} diff -r 6a56a7866943 -r 91feffeeafa6 nocompile/deprecated_11.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/deprecated_11.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,8 @@ +module dstress.nocompile.deprecated_11; + +int a = 2; +deprecated alias a b; + +int main(){ + return b; +} diff -r 6a56a7866943 -r 91feffeeafa6 nocompile/version_17.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/version_17.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,11 @@ +module dstress.nocompile.version_17; + +version(linux){ + version(Windows){ + // unrecheable + int main(){ + return 0; + } + } +} + diff -r 6a56a7866943 -r 91feffeeafa6 nocompile/version_18.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/version_18.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,11 @@ +module dstress.nocompile.version_18; + +version(X86){ + version(AMD64){ + // unrecheable + int main(){ + return 0; + } + } +} + diff -r 6a56a7866943 -r 91feffeeafa6 nocompile/version_19.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/version_19.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,11 @@ +module dstress.nocompile.version_19; + +version(Win32){ + version(Win64){ + // unrecheable + int main(){ + return 0; + } + } +} + diff -r 6a56a7866943 -r 91feffeeafa6 nocompile/version_20.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/version_20.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,11 @@ +module dstress.nocompile.version_20; + +version(linux){ + version(Win32){ + // unrecheable + int main(){ + return 0; + } + } +} + diff -r 6a56a7866943 -r 91feffeeafa6 nocompile/version_21.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/version_21.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,11 @@ +module dstress.nocompile.version_21; + +version(linux){ + version(Win64){ + // unrecheable + int main(){ + return 0; + } + } +} + diff -r 6a56a7866943 -r 91feffeeafa6 nocompile/version_22.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/version_22.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,11 @@ +module dstress.nocompile.version_22; + +version(LittleEndian){ + version(BigEndian){ + // unrecheable + int main(){ + return 0; + } + } +} + diff -r 6a56a7866943 -r 91feffeeafa6 run/command_line_debug_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/command_line_debug_01.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,11 @@ +// §DSTRESS_FLAGS§ -debug + +module stress.run.command_line_debug_01; + +int main(){ + debug{ + return 0; + }else{ + static assert(0); + } +} diff -r 6a56a7866943 -r 91feffeeafa6 run/command_line_debug_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/command_line_debug_02.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,11 @@ +// §DSTRESS_FLAGS§ -debug=1 + +module stress.run.command_line_debug_02; + +int main(){ + debug(1){ + return 0; + }else{ + static assert(0); + } +} diff -r 6a56a7866943 -r 91feffeeafa6 run/command_line_debug_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/command_line_debug_03.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,11 @@ +// §DSTRESS_FLAGS§ -debug=abc + +module stress.run.command_line_debug_03; + +int main(){ + debug(abc){ + return 0; + }else{ + static assert(0); + } +} diff -r 6a56a7866943 -r 91feffeeafa6 run/command_line_debug_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/command_line_debug_04.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,11 @@ +// §DSTRESS_FLAGS§ -debug=123456789 + +module stress.run.command_line_debug_04; + +int main(){ + debug(123456789){ + return 0; + }else{ + static assert(0); + } +} diff -r 6a56a7866943 -r 91feffeeafa6 run/command_line_debug_08.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/command_line_debug_08.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,11 @@ +// §DSTRESS_FLAGS§ -debug=A1 + +module stress.run.command_line_debug_08; + +int main(){ + version(A1){ + return 0; + }else{ + static assert(0); + } +} diff -r 6a56a7866943 -r 91feffeeafa6 run/command_line_version_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/command_line_version_01.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,11 @@ +// §DSTRESS_FLAGS§ -version=abc + +module dstress.run.command_line_version_01; + +int main(){ + version(abc){ + return 0; + }else{ + static assert(0); + } +} diff -r 6a56a7866943 -r 91feffeeafa6 run/command_line_version_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/command_line_version_02.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,11 @@ +// §DSTRESS_FLAGS§ -version=123 + +module dstress.run.command_line_version_02; + +int main(){ + version(123){ + return 0; + }else{ + static assert(0); + } +} diff -r 6a56a7866943 -r 91feffeeafa6 run/command_line_version_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/command_line_version_03.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,11 @@ +// §DSTRESS_FLAGS§ -version=A2 + +module dstress.run.command_line_version_03; + +int main(){ + version(A2){ + return 0; + }else{ + static assert(0); + } +} diff -r 6a56a7866943 -r 91feffeeafa6 run/debug_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/debug_01.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,13 @@ +// §DSTRESS_FLAGS§ -debug + +module dstress.run.debug_01; + +int main(){ + int x; + assert(x==0); + debug{ + x++; + } + assert(x==1); + return 0; +} diff -r 6a56a7866943 -r 91feffeeafa6 run/debug_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/debug_02.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,26 @@ +// @author@ Thomas Kuehne +// @date@ 2004-10-16 +// @uri@ news://ckro4i$1b4l$2@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2119 + +// §DSTRESS_FLAGS§ -debug=2 + +module dstress.run.debug_02; + +int main(){ + int i=0; + assert(i==0); + debug(1){ + assert(0); + } + debug(2){ + i++; + assert(i==1); + } + debug(3){ + i++; + assert(i==2); + } + assert(i==2); + return 0; +} diff -r 6a56a7866943 -r 91feffeeafa6 run/debug_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/debug_03.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,19 @@ +// §DSTRESS_FLAGS§ -debug=a + +module dstress.run.debug_03; + +int main(){ + int i; + assert(i==0); + debug(a){ + i++; + assert(i==1); + } + debug(b){ + i++; + assert(0); + } + assert(i==1); + return 0; +} + diff -r 6a56a7866943 -r 91feffeeafa6 run/deprecated_12.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/deprecated_12.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,8 @@ +module dstress.run.deprecated_12; + +int a = 2; +deprecated alias a b; + +int main(){ + return a-2; +} diff -r 6a56a7866943 -r 91feffeeafa6 run/unittest_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/unittest_01.d Fri Oct 29 21:04:52 2004 +0000 @@ -0,0 +1,14 @@ +// §DSTRESS_FLAGS§ -unittest + +module dstress.run.unittest_01; + +int status; + +int main(){ + assert(status==1); + return 0; +} + +unittest{ + status++; +}