From 2d573974d7d1085f699cb227bb374791a557b7ca Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Thu, 18 Dec 2008 08:09:01 +0100 Subject: [PATCH] Add #154 testcase. --- tests/mini/compile_bug-ldc-154.d | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/mini/compile_bug-ldc-154.d diff --git a/tests/mini/compile_bug-ldc-154.d b/tests/mini/compile_bug-ldc-154.d new file mode 100644 index 00000000..f3e7b551 --- /dev/null +++ b/tests/mini/compile_bug-ldc-154.d @@ -0,0 +1,9 @@ +template toInt(char[4] arg) +{ + const uint toInt = (cast(uint[]) arg)[0]; + } + + void main() + { + auto i = toInt!("abcd"); + }