changeset 818:21a9e3e2dbb1

Don Clugston <dac@nospam.com.au> 2006-02-08 news:dsce1c$15cd$1@digitaldaemon.com
author thomask
date Sat, 11 Feb 2006 09:32:37 +0000
parents 61ebb0f98f9e
children cdf2bcfd23f9
files run/t/template_27_A.d run/t/template_27_B.d run/t/template_27_C.d run/t/template_27_D.d
diffstat 4 files changed, 128 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/template_27_A.d	Sat Feb 11 09:32:37 2006 +0000
@@ -0,0 +1,32 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Don Clugston <dac@nospam.com.au>
+// @date@	2006-02-08
+// @uri@	news:dsce1c$15cd$1@digitaldaemon.com
+
+module dstress.run.t.template_27_A;
+
+template frog(char F){
+	const int frog = 1;
+}
+
+template frog(int F){
+	const int frog = 2;
+}
+
+template frog(char F: 'A'){
+	const int frog = 3;
+}
+
+template frog(int F: 65){
+	const int frog = 4;
+}
+
+int main(){
+	static assert(frog!('B') == 1);
+	return 0;
+}
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/template_27_B.d	Sat Feb 11 09:32:37 2006 +0000
@@ -0,0 +1,32 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Don Clugston <dac@nospam.com.au>
+// @date@	2006-02-08
+// @uri@	news:dsce1c$15cd$1@digitaldaemon.com
+
+module dstress.run.t.template_27_B;
+
+template frog(char F){
+	const int frog = 1;
+}
+
+template frog(int F){
+	const int frog = 2;
+}
+
+template frog(char F: 'A'){
+	const int frog = 3;
+}
+
+template frog(int F: 65){
+	const int frog = 4;
+}
+
+int main(){
+	static assert(frog!(3) == 2);
+	return 0;
+}
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/template_27_C.d	Sat Feb 11 09:32:37 2006 +0000
@@ -0,0 +1,32 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Don Clugston <dac@nospam.com.au>
+// @date@	2006-02-08
+// @uri@	news:dsce1c$15cd$1@digitaldaemon.com
+
+module dstress.run.t.template_27_C;
+
+template frog(char F){
+	const int frog = 1;
+}
+
+template frog(int F){
+	const int frog = 2;
+}
+
+template frog(char F: 'A'){
+	const int frog = 3;
+}
+
+template frog(int F: 65){
+	const int frog = 4;
+}
+
+int main(){
+	static assert(frog!('A') == 3);
+	return 0;
+}
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/template_27_D.d	Sat Feb 11 09:32:37 2006 +0000
@@ -0,0 +1,32 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Don Clugston <dac@nospam.com.au>
+// @date@	2006-02-08
+// @uri@	news:dsce1c$15cd$1@digitaldaemon.com
+
+module dstress.run.t.template_27_D;
+
+template frog(char F){
+	const int frog = 1;
+}
+
+template frog(int F){
+	const int frog = 2;
+}
+
+template frog(char F: 'A'){
+	const int frog = 3;
+}
+
+template frog(int F: 65){
+	const int frog = 4;
+}
+
+int main(){
+	static assert(frog!(65) == 4);
+	return 0;
+}
+
+