Mercurial > projects > dstress
changeset 950:fd579aa6ff7e
<regan@netwin.co.nz>
2006-04-07
news:bug-90-3@http.d.puremagic.com/bugzilla/
author | thomask |
---|---|
date | Sat, 08 Apr 2006 19:00:32 +0000 |
parents | f64573e691f6 |
children | 1a05061a48b9 |
files | complex/object_02/complex.mak complex/object_02/object.d |
diffstat | 2 files changed, 71 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/complex/object_02/complex.mak Sat Apr 08 19:00:32 2006 +0000 @@ -0,0 +1,56 @@ +# GnuMakefile for DStress http://dstress.kuehne.cn/www/dstress.html +# Copyright (C) 2006 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/object_02/warning \ + complex/object_02/$(complex_done) \ + complex/object_02/clean \ + complex/object_02/dest + +complex/object_02/warning : + $(error "don't invoke this file directly, instead use DStress' root Makefile with the target \"complex/object_02/complex.done\", \"complex\" or \"all\"") + +complex/object_02/dest = \ + complex/object_02/object_02_A + +# the actual target, will be called by root's "all" / "complex" target +complex/object_02/$(complex_done) : $(complex/object_02/dest) $(return__) $(ifeq__) + +# +# compile or nocompile but don't crash +# +complex/object_02/object_02 : complex/object_02/object.d $(return__) $(ifeq__) + @$(RM) -f complex/object_02/*.o + $(eval z_name = $@) + $(eval z_return = $(shell cd complex/object_02; $(return__) "$(DMD) $(DFLAGS) -od$(OBJ_DIR) object.d $(to_log)")) + @if $(ifeq__) $(z_return) 0; then \ + $(ECHO) "Torture-Sub-1/31-PASS: $(z_name)"; \ + else \ + if $(ifeq__) $(z_return) 256; then \ + $(ECHO) "Torture-Sub-1/31-PASS: $(z_name)"; \ + else \ + $(ECHO) "Torture-Sub-1/31-ERROR: $(z_name)"; \ + fi \ + fi + +# +# cleanup +# +clean :: + $(RM) complex/object_02/*.done $(complex/object_02/dest) complex/object_02/*.o +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/complex/object_02/object.d Sat Apr 08 19:00:32 2006 +0000 @@ -0,0 +1,15 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <regan@netwin.co.nz> +// @date@ 2006-04-07 +// @uri@ news:bug-90-3@http.d.puremagic.com/bugzilla/ + +class X{ + int i; +} + +int main(){ + return 0; +}