diff run/v/variadic_argument_07_E.d @ 1125:a929acac9127

various test case fixes
author thomask
date Wed, 06 Sep 2006 05:07:33 +0000
parents
children b8c0195059d9
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/v/variadic_argument_07_E.d	Wed Sep 06 05:07:33 2006 +0000
@@ -0,0 +1,37 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	David L. Davis <SpottedTiger@yahoo.com>
+// @date@	2005-09-22
+// @uri@	news:dgup0c$1j47$1@digitaldaemon.com
+
+module dstress.run.v.variadic_argument_07_E;
+
+int counter;
+
+void test(char[] s){
+	if(s != "string"){
+		assert(0);
+	}
+	counter++;
+}
+
+void test(...){
+	assert(0);
+}
+
+int main(){
+	if(counter != 0){
+		assert(0);
+	}
+
+	char[] string = "string";
+	
+	test(string);
+	if(counter != 1){
+		assert(0);
+	}
+
+	return 0;
+}