changeset 953:12cfdd8bffb5

added "b->type->ty == Tclass" version
author thomask
date Sat, 08 Apr 2006 19:20:57 +0000
parents b0772904ed4e
children 05e38ca7e533
files complex/object_02/a.d complex/object_02/complex.mak
diffstat 2 files changed, 31 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/complex/object_02/a.d	Sat Apr 08 19:20:57 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;
+}
--- a/complex/object_02/complex.mak	Sat Apr 08 19:09:20 2006 +0000
+++ b/complex/object_02/complex.mak	Sat Apr 08 19:20:57 2006 +0000
@@ -27,6 +27,7 @@
 
 complex/object_02/dest = \
 	complex/object_02/object_02_A
+	complex/object_02/object_02_B
 
 # the actual target, will be called by root's "all" / "complex" target
 complex/object_02/$(complex_done) : $(complex/object_02/dest) $(return__) $(ifeq__)
@@ -34,7 +35,7 @@
 #
 # compile or nocompile but don't crash
 #
-complex/object_02/object_02 : complex/object_02/object.d $(return__) $(ifeq__)
+complex/object_02/object_02_A : 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)"))
@@ -48,6 +49,20 @@
 		fi \
 	fi 
 
+complex/object_02/object_02_B : complex/object_02/a.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) a.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
 #