changeset 861:fa019f0ce718

Add #154 testcase.
author Christian Kamm <kamm incasoftware de>
date Thu, 18 Dec 2008 08:09:01 +0100
parents 7edce7e58ab1
children e8337278f49b 2025c9a24efd
files tests/mini/compile_bug-ldc-154.d
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
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");
+	   }