diff tests/mini/compile_bug-ldc-154.d @ 861:fa019f0ce718

Add #154 testcase.
author Christian Kamm <kamm incasoftware de>
date Thu, 18 Dec 2008 08:09:01 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/mini/compile_bug-ldc-154.d	Thu Dec 18 08:09:01 2008 +0100
@@ -0,0 +1,9 @@
+template toInt(char[4] arg)
+{
+	const uint toInt = (cast(uint[]) arg)[0];
+	}
+	 
+	 void main()
+	 {
+	   auto i = toInt!("abcd");
+	   }