comparison 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
comparison
equal deleted inserted replaced
860:7edce7e58ab1 861:fa019f0ce718
1 template toInt(char[4] arg)
2 {
3 const uint toInt = (cast(uint[]) arg)[0];
4 }
5
6 void main()
7 {
8 auto i = toInt!("abcd");
9 }